On 14 December 2014 at 13:42, Nima Sadjadi <[email protected]> wrote: > > > Hi, > > While onFlush, by getScheduledx() with if statement, we will know what > will happen to that entity, it will be deleted, updated, inserted or what. > But I need to know with postFlush() how will we know if that entity is > deleted or inserted? which UoW method can I use to let the script know that? > Look forward for an answer as I am still stuck even after looking docs and > source codes. > > Thanks, > > - >
You can't get this kind of information from the UoW: you need a stateful listener that listens to both `onFlush` and `postFlush`, and keeps track of the changes internally. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ -- 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.
