mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
HasLifecycleCallbacks doesn't work on User class #5741
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CharpentierAlexandre on GitHub (Oct 13, 2017).
My lifecycle callbacks doesn't work at all... Please anyone can help me? hereunder my class User (part of it which is relevant):
Thank to everyone whom could help me going further.
@Ocramius commented on GitHub (Oct 13, 2017):
Don't see anything wrong with it, but is it actually being updated? Can you maybe check if the lifecycle event listeners are somewhere in the object that you can dump from
$em->getClassMetadata(\XXX\UserBundle\Entity\User::class)?@CharpentierAlexandre commented on GitHub (Oct 14, 2017):
@Ocramius I use FosUserBundle then I thought that the event listener were already parameterized for this feature. Should I override the listener to handle the lifecycle?
Do you mean my entity would have not been really updated as understood by FOS (on Flush)?
Thank you a lot!