mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #684] [CLOSED] Cancel load entity exception #8554
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/684
Author: @TomHAnderson
Created: 6/3/2013
Status: ❌ Closed
Base:
master← Head:CancelLoadEntityException📝 Commits (3)
9227dcdAdded cancelable exception to postLoad1bebcb3Added unit test to demonstrate postLoad security78df0acIf a join is eager do not consider it among the fetch-joined associations📊 Changes
7 files changed (+410 additions, -13 deletions)
View changed files
📝
docs/en/reference/events.rst(+8 -3)➕
lib/Doctrine/ORM/CancelLoadEntityException.php(+30 -0)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+17 -3)📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+7 -3)📝
lib/Doctrine/ORM/UnitOfWork.php(+3 -2)➕
tests/Doctrine/Tests/ORM/Functional/CancelLoadEntityExceptionTest.php(+289 -0)📝
tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php(+56 -2)📄 Description
Gives the developer an exception to throw in postLoad which will cancel the loading of the entity into the EntityManager
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.