mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11649] Revert undeprecate PARTIAL for objects in DQL. #13160
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?
Original Pull Request: https://github.com/doctrine/orm/pull/11649
State: closed
Merged: No
With this PR
SELECT PARTIAL p.{}is allowed again with object hydration. It was already re-allowed for array-hydration a few commits before.The reason we want to allow this again is that PHP 8.4 Lazy Proxies will allow us to implement partial objects as proxies that will trigger lazy initialization as soon as one of the "not loaded" partial properties is accessed.
Related: