I want to add my postUpdate entity listener only when a particilar property is changed, not whenever an update is done. Reading this http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/change-tracking-policies.html#notify Shoul I add my $metadata->addEntityListener within that foreach stated on wiki to invoke postUpdate listener only when that property is changed? Doesn't seem correct as $metadata instance is not available within this method available. Please advice.
Another case: imagine i added entity listener anyway for any changes and added that change tracking policy too, this way my listener will be invoked whenever any changes is done. Now how can I check within my listener if that property is changed or not? How to get changed property within a listener? I am really stuck. Please help. 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.
