mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #470] [CLOSED] Moved dispatching of postLoad event to the point when entities are fully loaded and all associations initialized #8241
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/470
Author: @chives
Created: 10/11/2012
Status: ❌ Closed
Base:
master← Head:DDC-54📝 Commits (2)
780316cMoved postLoad dispatching from UnitOfWork to object hydrators1da2bb1Removed 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
postLoadfromUnitOfWorkto both object hydrators (SimpleObjectHydratorandObjectHydrator). 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.