This package contains Doctrine MongoDB Nested set Strategy extension for DoctrineExtensions.
Add the alitvinenko/mongodb-nested-tree-extension
package to your require
section in the composer.json
file.
$ composer require alitvinenko/mongodb-nested-tree-extension
Configure StofDoctrineExtensionsBundle.
# app/config/config.yml
...
stof_doctrine_extensions:
mongodb:
default:
tree: true # enable tree extension
class:
tree: NestedTreeExtension\Listener\TreeListener # and set listener
...