Modifications to collections are not considered entity modifications. You need to access them with `Doctrine\ORM\UnitOfWork#getScheduledCollectionDeletions()` and `Doctrine\ORM\UnitOfWork#getScheduledCollectionUpdated()`
https://github.com/doctrine/doctrine2/blob/c019047d6c85cb39dcb8425b71f35324519cb69e/lib/Doctrine/ORM/UnitOfWork.php#L3190-L3208 Note that this API is _ONLY_ supposed to be used within event listeners attached to the UnitOfWork's lifecycle events. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 16 July 2014 15:46, Senorihl <[email protected]> wrote: > I used *$event*->getEntityChangeSet() to get the diff, an it gives me an > empty array > > -- > 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.
