alitvinenko/mongodb-nested-tree-extension

MongoDB Nested set Strategy and Repository class for DoctrineExtensions

v0.1.2 2018-11-26 18:11 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:16:35 UTC


README

About

This package contains Doctrine MongoDB Nested set Strategy extension for DoctrineExtensions.

1. Installation

Add the alitvinenko/mongodb-nested-tree-extension package to your require section in the composer.json file.

$ composer require alitvinenko/mongodb-nested-tree-extension

2. Configuration

2.1. Configuration StofDoctrineExtensionsBundle

Configure StofDoctrineExtensionsBundle.

2.2. Set overriding Listener for Tree extension

# app/config/config.yml

...
stof_doctrine_extensions:
    mongodb:
        default:
            tree: true # enable tree extension
    class:
        tree: NestedTreeExtension\Listener\TreeListener # and set listener
...