Hi, I'm extending the Gedmo doctrine extension in order to be able to map associations between ORM entities and ODM documents.
I wanted to ask the doctrine gurus what would be the best way to accomplish a cascade persist or remove: So far I have a Product (orm) with an image(odm) field, on the products prePersist and preUpdate I check if the mapped association is 'cascade' or 'remove', and I call the corresponding odm manager method, and then 'flush'. I'm not sure about this, but can I get a 'fresh' unit of work for this operation? I'm concerned that I cannot have any control over the manager's unit of work, and if I perform a flush it might have uncontrolled side effects such as saving/removing documents that are outside the scope of this 'cascade' and 'remove'. Any other suggestions as how to achieve this? Thanks. -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
