symfony-cmf / routing-auto-bundle

Adding automatic route generating on top of the symfony cmf routing
https://cmf.symfony.com
14 stars 29 forks source link

PHPCR-ODM: Routes which contain segments created by another route in same flush #171

Open dantleech opened 8 years ago

dantleech commented 8 years ago

Suppose two routes would be scheduled for creation as follows:

/path/to/foobar
/path/to/foobar/edit

The system will crash because it tries to create a new node, foobar for the second route - this probably has something to do with the hackery necessary to bypass the Document Manager.

dbu commented 8 years ago

if the odm is told to create those two documents in the right order, it should work. is it just that routing auto looks at the edit path separately and creates the parent document again? if you already added foobar, find /path/to/foobar should return you the new document that does not exist yet.