[PR #682] [CLOSED] onLoad Event #8547

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

📋 Pull Request Information

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

Base: masterHead: onLoad


📝 Commits (8)

  • 9f5e752 Added OnLoad to Lifecycle events
  • c7d8939 Return false from OnLoad event listener
  • 46d7292 Set entity to event args entity so the entity can be replaced by onLoad
  • 9b7fc65 Merge remote-tracking branch 'upstream/master' into onLoad
  • 02a337d Return false from OnLoad event listener
  • 9b3cf6a Added onLoad documentation
  • 40d000f Fix plural
  • c493b60 Fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/682 **Author:** [@TomHAnderson](https://github.com/TomHAnderson) **Created:** 6/3/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `onLoad` --- ### 📝 Commits (8) - [`9f5e752`](https://github.com/doctrine/orm/commit/9f5e7524605854340ccc90819057aede0648af0b) Added OnLoad to Lifecycle events - [`c7d8939`](https://github.com/doctrine/orm/commit/c7d8939d9870fe5d977ce5944394ddce168cc471) Return false from OnLoad event listener - [`46d7292`](https://github.com/doctrine/orm/commit/46d72924ad1a85ad33ae6b3a8d752eaf16bde79d) Set entity to event args entity so the entity can be replaced by onLoad - [`9b7fc65`](https://github.com/doctrine/orm/commit/9b7fc653340ffea321f7ba86031b74d74b7a8018) Merge remote-tracking branch 'upstream/master' into onLoad - [`02a337d`](https://github.com/doctrine/orm/commit/02a337dcc3478f408ad6e4d43cecfbf07d514fee) Return false from OnLoad event listener - [`9b3cf6a`](https://github.com/doctrine/orm/commit/9b3cf6a0855be7361bc9e313eb9f6c5891d1d5cf) Added onLoad documentation - [`40d000f`](https://github.com/doctrine/orm/commit/40d000fa016647fa77c90230042b841a1db2e21b) Fix plural - [`c493b60`](https://github.com/doctrine/orm/commit/c493b60f3552e02a2b04360645a769c286be3d08) Fix warning ### 📊 Changes **10 files changed** (+203 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description This PR implements the onLoad event which provides a mutable entity and entity load cancellation. --- <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:25 +01:00
admin closed this issue 2026-01-22 16:00:26 +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#8547