[PR #11653] [GH-8471] Undeprecate PARTIAL for objects in DQL #13163

Open
opened 2026-01-22 16:16:23 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11653

State: closed
Merged: Yes


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:

**Original Pull Request:** https://github.com/doctrine/orm/pull/11653 **State:** closed **Merged:** Yes --- 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: * https://github.com/doctrine/orm/issues/8471 * https://github.com/doctrine/orm/pull/11647
admin added the pull-request label 2026-01-22 16:16:23 +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#13163