Did you check http://stackoverflow.com/questions/9057558/is-there-a-built-in-way-to-get-all-of-the-changed-updated-fields-in-a-doctrine-2/9057705#9057705 ?
Also http://stackoverflow.com/a/14888481/347063 Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 2 October 2015 at 06:00, Cristian Bichis <[email protected]> wrote: > Hello, > > I have an entity Order with a One-to-Many association to entities of class > Items. I am using an Event Listener to track changes. > > At every change of Order or depending association Invoice I need to do a > full copy of the order to a "similar" entity Invoice+Invoice Items. > > As far as I understand the Event Listener doesnt detect (on changeset) the > changes to One-To-Many association, but only to own Order members. > > > Can anyone recommend me a good way to be able to track changes to "whole" > Order-Items association so I can safely create the Invoices ? I dont have > very much Doctrine experience. I guess there are some already defined > "patterns" to achieve this. > > Just detecting that Items has changed (or new Items is persisted or > removed) may not be enough to be able to be sure I am creating only one > invoice for all Items. > > Thank you! > Cristian > > -- > 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. > -- 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.
