-
Notifications
You must be signed in to change notification settings - Fork 17
[2.0] Usage without Doctrine ODM #145
Comments
@iluuu1994 now, the resource packages are used for the backend. Resource is an abstraction of tree-based backends, built on top of Puli. So to make this Gedmo Tree compatible, you have to create a After that, you have to create a GedmoTreeRepositoryFactory for the interaction with the container: https://github.com/symfony-cmf/resource-bundle/blob/master/src/DependencyInjection/Repository/Factory/DoctrinePhpcrOdmFactory.php Then in your bundle's So it involves some more things, but the good side of the story is that you have a nice abstraction for the tree that you can use throughout your application (so it's easy to switch to PHPCR ODM, file structure, XML, any tree like thing in the future for instance). |
@wouterj Thanks for the thorough explanation! I'll let you know if I get it working. Would you be interested in merging the Gedmo adapter? |
Yep, I'm very interesting in supporting ORM in the Symfony CMF. Adding a Gedmo tree repository seems like a very nice step in this direction. If you need any help creating the repository or pull request, feel free to join the |
We're using Gedmo Tree instead of Doctrine ODM for our tree data structure. In Version 1.0 of the TreeBrowserBundle it was pretty easy to write my own
Tree
class by implementing theTreeInterface
.How can I achieve the same thing now?
Thanks for your work!
The text was updated successfully, but these errors were encountered: