mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #12210] [GH-12209] Prototype for loading partial objects fully #13581
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/12210
Author: @beberlei
Created: 10/8/2025
Status: 🔄 Open
Base:
3.7.x← Head:GH-12209-PartialNativeLazy📝 Commits (2)
08e001a[GH-12209] Naive prototype for loading partial objects fully when accessing uninitialized field.62a53ecscope affected tests to only native lazy for better assertions.📊 Changes
9 files changed (+99 additions, -18 deletions)
View changed files
📝
src/Internal/Hydration/ObjectHydrator.php(+1 -0)📝
src/Internal/Hydration/SimpleObjectHydrator.php(+2 -0)📝
src/Proxy/ProxyFactory.php(+5 -3)📝
src/Query/ResultSetMapping.php(+17 -2)📝
src/Query/SqlWalker.php(+5 -2)📝
src/UnitOfWork.php(+10 -7)📝
tests/Tests/ORM/Functional/QueryTest.php(+49 -0)📝
tests/Tests/ORM/Functional/ValueObjectsTest.php(+6 -0)📝
tests/Tests/ORM/Hydration/ObjectHydratorTest.php(+4 -4)📄 Description
A partial object is actually just a proxy with more than just the ID field pre-populated. If we access a property of the partial object that is not already loaded, then we can trigger the proxy to load the missing fields.
Problems:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.