[PR #684] [CLOSED] Cancel load entity exception #8554

Closed
opened 2026-01-22 16:00:28 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/684
Author: @TomHAnderson
Created: 6/3/2013
Status: Closed

Base: masterHead: CancelLoadEntityException


📝 Commits (3)

  • 9227dcd Added cancelable exception to postLoad
  • 1bebcb3 Added unit test to demonstrate postLoad security
  • 78df0ac If 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.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/684 **Author:** [@TomHAnderson](https://github.com/TomHAnderson) **Created:** 6/3/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `CancelLoadEntityException` --- ### 📝 Commits (3) - [`9227dcd`](https://github.com/doctrine/orm/commit/9227dcdce7d5db4b7e427b413dceb0975f82cd84) Added cancelable exception to postLoad - [`1bebcb3`](https://github.com/doctrine/orm/commit/1bebcb30ad1fb16ba4ee0615e057e3251d8ebec5) Added unit test to demonstrate postLoad security - [`78df0ac`](https://github.com/doctrine/orm/commit/78df0ac38dfa195f8029616542dff9d01be5692b) If a join is eager do not consider it among the fetch-joined associations ### 📊 Changes **7 files changed** (+410 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Gives the developer an exception to throw in postLoad which will cancel the loading of the entity into the EntityManager --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:00:28 +01:00
admin closed this issue 2026-01-22 16:00:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8554