mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #423] [MERGED] DDC-1955 - @EntityListeners #8173
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/423
Author: @FabioBatSilva
Created: 8/12/2012
Status: ✅ Merged
Merged: 2/2/2013
Merged by: @beberlei
Base:
master← Head:DDC-1955📝 Commits (10+)
368cf73entity listeners mapping0f081d7support short class name3c223a5move call listeners tests to AbstractMappingDriverTestc5d59abtest entity listener metadataccc0a2atest entity listener calls315f7bacall listeners in UoWdbd0697test @PostLoadc6adcdagive event to lifecycle callbacks4cfe229test lifecycle callbacks event args6be7a03fix previous test📊 Changes
46 files changed (+2162 additions, -164 deletions)
View changed files
📝
docs/en/reference/events.rst(+227 -3)📝
doctrine-mapping.xsd(+16 -0)📝
lib/Doctrine/ORM/Configuration.php(+28 -0)➕
lib/Doctrine/ORM/Event/ListenersInvoker.php(+120 -0)➕
lib/Doctrine/ORM/Mapping/Builder/EntityListenerBuilder.php(+72 -0)📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+5 -1)📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+57 -23)➕
lib/Doctrine/ORM/Mapping/DefaultEntityListenerResolver.php(+75 -0)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+86 -45)📝
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php(+1 -0)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+25 -4)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+19 -0)➕
lib/Doctrine/ORM/Mapping/EntityListenerResolver.php(+55 -0)➕
lib/Doctrine/ORM/Mapping/EntityListeners.php(+41 -0)📝
lib/Doctrine/ORM/Mapping/MappingException.php(+23 -0)📝
lib/Doctrine/ORM/UnitOfWork.php(+56 -78)📝
tests/Doctrine/Tests/Models/CMS/CmsAddress.php(+35 -1)➕
tests/Doctrine/Tests/Models/CMS/CmsAddressListener.php(+58 -0)📝
tests/Doctrine/Tests/Models/Company/CompanyContract.php(+41 -0)➕
tests/Doctrine/Tests/Models/Company/CompanyContractListener.php(+84 -0)...and 26 more files
📄 Description
http://www.doctrine-project.org/jira/browse/DDC-1955
Hi.
This path adds support for
@EntityListenersThis path add another way to handle events
allow configure the same listener for many specific entities.
And give the EventArg in the current lifecycle callback system.
Usage :
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.