mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2895: [GH-902] Fix Lifecycle Callbacks #3610
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 @doctrinebot on GitHub (Jan 8, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of gwagner:
Url: https://github.com/doctrine/doctrine2/pull/902
Message:
Remove a bit of code that breaks lifecycle callbacks of parent MappedSuperclasses
Lets say we are working with this code:
And you want to save MyClass and have it call the Lifecycle callbacks for your BaseClass. If you leave things they way they are programmed today, the BaseClass will never get its callbacks registered.
By removing the little bit of code there [Lines 472-475], you now get lifecycle callbacks through the entire stack, not just the top most class.
@doctrinebot commented on GitHub (Feb 8, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-902] was closed:
https://github.com/doctrine/doctrine2/pull/902
@doctrinebot commented on GitHub (Feb 8, 2014):
Issue was closed with resolution "Fixed"