DDC-1363: Ability to exclude fields from hydration #1708

Closed
opened 2026-01-22 13:22:56 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 6, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user darkangel:

As discussed with Guilherme on IRC.

Example:

SELECT x, y, (SELECT COUNT(*) FROM ...) AS HIDDEN z
FROM Entity e
WHERE z > 100

The above would give you an array of Entity objects, instead of a multidimensional array that included "z".

It could also be "AS TRANSIENT z".

Originally created by @doctrinebot on GitHub (Sep 6, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user darkangel: As discussed with Guilherme on IRC. Example: ``` SELECT x, y, (SELECT COUNT(*) FROM ...) AS HIDDEN z FROM Entity e WHERE z > 100 ``` The above would give you an array of Entity objects, instead of a multidimensional array that included "z". It could also be "AS TRANSIENT z".
admin added the New Feature label 2026-01-22 13:22:56 +01:00
admin closed this issue 2026-01-22 13:22:56 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 3, 2011):

Comment created by @guilhermeblanco:

Implemented new feature in ebe933810e

@doctrinebot commented on GitHub (Oct 3, 2011): Comment created by @guilhermeblanco: Implemented new feature in https://github.com/doctrine/doctrine2/commit/ebe933810e0f25097c0067525c1b219b35495f5f
Author
Owner

@doctrinebot commented on GitHub (Oct 3, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 3, 2011): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1708