You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within my app, when I create an Article, app auto-generates a News for it. Both (Article and News) have their own children-nodes attached (always).
The workflow looks like this:
persist Article
Doctrine EventListener - Article postPersist: create children, and set their Parent as Article
Doctrine EventListener - Article postPersist: EventDispatcher -> generate News (creates new News document inside the other service)
persist News (in the same service)
Doctrine EventListener - News postPersist: create children, and set their Parent as News
Points 1-4 work well. But children persisted to another persisted Document - News - seem to be not persisted at all. I checked everything, it took me like 4 hours or so. Everything looks fine, objects are created, persisted, they exist... until I do flush. Then News children-elements disappear.
Do you know why does it happen?
Forgot to mention: when I create a bare News (not auto-generated in the nested Doctrine events), it is created without a problem, with its children.
The text was updated successfully, but these errors were encountered:
@petforsberg reported originally in doctrine/DoctrinePHPCRBundle#179
Within my app, when I create an Article, app auto-generates a News for it. Both (Article and News) have their own children-nodes attached (always).
The workflow looks like this:
Points 1-4 work well. But children persisted to another persisted Document - News - seem to be not persisted at all. I checked everything, it took me like 4 hours or so. Everything looks fine, objects are created, persisted, they exist... until I do flush. Then News children-elements disappear.
Do you know why does it happen?
Forgot to mention: when I create a bare News (not auto-generated in the nested Doctrine events), it is created without a problem, with its children.
The text was updated successfully, but these errors were encountered: