-
Notifications
You must be signed in to change notification settings - Fork 29
support routes stored in Doctrine ORM #19
Comments
Yes, I was thinking about this and it should be quite straight forward.
This would be a good place to try out some new namespacing too:
|
regarding the namespacing part: yes. but we should only create persistence specific model classes if really needed. see also FriendsOfSymfony/FOSUserBundle#1081 where i try to get rid of the classes in Entity/Document completely. the same btw for listener, if its just doctrine specific it could live in Persistence/Doctrine/EventListener directly. |
@dantleech @dbu ping? I see this has already been implemented into the RoutingBundle (PR 122). Would it be a lot of work to implement it here as well? I'm currently researching the whole Symfony CMF project (including the dynamic routings). If you could give me some guidance I could try to implement it? |
No it shouldn't be alot of work. We just need implement a new Adapter and a new subscriber. |
The difficult thing here is the relation with the content entity. Should we implement this with 2 queries? (one query only getting the AutoRoute and the other the related content, saving both content type and id in the OrmAutoRoute?) |
Is there any news about the ORM support ? |
@fredpeaks I plan to get this into the 2.0 release. I imagine the work to be as follows:
|
@dantleech Thank you for the answer, great news ! |
Not really. It is next on my list, but it could be a month or two before its started/finished, feel free to start on it if you like however. |
Ok thanks. I will try to start this based on your PR. |
For information I've been working on this and the RoutingBundle ORM integration. I've managed to make things work but I've no time for now to finish and create a pull request (there are a lot of tests to write, documentation, refactoring eventually...). I already use this on a real project (under development). It'working but not fully tested yet. If you want to have a look at what I've done, here are the repos : A quick list of added functionalities:
I've been forced to make design choices and there is a lot to discuss about the way things are done. I'll try to make a pull request next week and write a detailed description. |
This would go along with symfony-cmf/routing-bundle#83 if it happens.
The text was updated successfully, but these errors were encountered: