mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #682] [CLOSED] onLoad Event #8547
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/682
Author: @TomHAnderson
Created: 6/3/2013
Status: ❌ Closed
Base:
master← Head:onLoad📝 Commits (8)
9f5e752Added OnLoad to Lifecycle eventsc7d8939Return false from OnLoad event listener46d7292Set entity to event args entity so the entity can be replaced by onLoad9b7fc65Merge remote-tracking branch 'upstream/master' into onLoad02a337dReturn false from OnLoad event listener9b3cf6aAdded onLoad documentation40d000fFix pluralc493b60Fix warning📊 Changes
10 files changed (+203 additions, -6 deletions)
View changed files
📝
docs/en/reference/events.rst(+48 -3)➕
lib/Doctrine/ORM/Event/OnLoadEventArgs.php(+92 -0)📝
lib/Doctrine/ORM/Events.php(+10 -0)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+4 -1)📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+1 -1)📝
lib/Doctrine/ORM/Mapping/Builder/EntityListenerBuilder.php(+1 -0)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+4 -0)📝
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php(+1 -0)➕
lib/Doctrine/ORM/Mapping/OnLoad.php(+28 -0)📝
lib/Doctrine/ORM/UnitOfWork.php(+14 -1)📄 Description
This PR implements the onLoad event which provides a mutable entity and entity load cancellation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.