mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #902] [MERGED] Fix Lifecycle Callbacks #8866
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/902
Author: @gwagner
Created: 1/8/2014
Status: ✅ Merged
Merged: 2/8/2014
Merged by: @beberlei
Base:
master← Head:master📝 Commits (4)
db31c58Fix Lifecycle Callbacks4772cbfAdd a teste9739f8Fix some code standard thingsb863b9bFix some code standard things📊 Changes
3 files changed (+117 additions, -4 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+4 -0)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+1 -4)➕
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2895Test.php(+112 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.