[PR #470] [CLOSED] Moved dispatching of postLoad event to the point when entities are fully loaded and all associations initialized #8241

Closed
opened 2026-01-22 15:59:02 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/470
Author: @chives
Created: 10/11/2012
Status: Closed

Base: masterHead: DDC-54


📝 Commits (2)

  • 780316c Moved postLoad dispatching from UnitOfWork to object hydrators
  • 1da2bb1 Removed warning about postLoad event from docs

📊 Changes

6 files changed (+262 additions, -18 deletions)

View changed files

📝 docs/en/reference/events.rst (+0 -7)
lib/Doctrine/ORM/Event/PostLoadEventDispatcher.php (+123 -0)
📝 lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php (+21 -1)
📝 lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php (+33 -1)
📝 lib/Doctrine/ORM/UnitOfWork.php (+13 -7)
📝 tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php (+72 -2)

📄 Description

This is proposed solution for very old http://www.doctrine-project.org/jira/browse/DDC-54. I moved dispatching of postLoad from UnitOfWork to both object hydrators (SimpleObjectHydrator and ObjectHydrator). Now it's dispatched when entities are fully hydrated into objects with all associations.


🔄 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/470 **Author:** [@chives](https://github.com/chives) **Created:** 10/11/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `DDC-54` --- ### 📝 Commits (2) - [`780316c`](https://github.com/doctrine/orm/commit/780316ce618fbf89e862c08041e1d6cbc049ae46) Moved postLoad dispatching from UnitOfWork to object hydrators - [`1da2bb1`](https://github.com/doctrine/orm/commit/1da2bb15e983318b07c03dfa399f845428e05815) Removed warning about postLoad event from docs ### 📊 Changes **6 files changed** (+262 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/events.rst` (+0 -7) ➕ `lib/Doctrine/ORM/Event/PostLoadEventDispatcher.php` (+123 -0) 📝 `lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php` (+21 -1) 📝 `lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php` (+33 -1) 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+13 -7) 📝 `tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php` (+72 -2) </details> ### 📄 Description This is proposed solution for very old http://www.doctrine-project.org/jira/browse/DDC-54. I moved dispatching of `postLoad` from `UnitOfWork` to both object hydrators (`SimpleObjectHydrator` and `ObjectHydrator`). Now it's dispatched when entities are fully hydrated into objects with all associations. --- <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 15:59:02 +01:00
admin closed this issue 2026-01-22 15:59:03 +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#8241