DDC-1424: Make order in DQL SELECT clause matter for hydration #1785

Closed
opened 2026-01-22 13:25:55 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 16, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @beberlei:

The order of the DQL Select clause should matter for the result hydration:

SELECT u.id, u, u.name FROM User u => result keys: id, 1, name
SELECT u.id, u.id FROM User u => result keys: id, or numerical hydration 0, 1
SELECT u.id, u AS user FROM User u => result keys: id, user
Originally created by @doctrinebot on GitHub (Oct 16, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @beberlei: The order of the DQL Select clause should matter for the result hydration: ``` SELECT u.id, u, u.name FROM User u => result keys: id, 1, name SELECT u.id, u.id FROM User u => result keys: id, or numerical hydration 0, 1 SELECT u.id, u AS user FROM User u => result keys: id, user ```
admin added the Improvement label 2026-01-22 13:25:55 +01:00
admin closed this issue 2026-01-22 13:25:56 +01:00
Author
Owner
@doctrinebot commented on GitHub (Oct 16, 2011): - is referenced by [DDC-1096: "You may have observed that in a mixed result, the object always ends up on index 0 of a result row."](http://www.doctrine-project.org/jira/browse/DDC-1096)
Author
Owner

@doctrinebot commented on GitHub (Nov 14, 2011):

Comment created by @guilhermeblanco:

Implemented!!!

81cc6d9da8

@doctrinebot commented on GitHub (Nov 14, 2011): Comment created by @guilhermeblanco: Implemented!!! https://github.com/doctrine/doctrine2/commit/81cc6d9da83d217ea62bd467053fd9885d1083cd
Author
Owner

@doctrinebot commented on GitHub (Nov 14, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 14, 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#1785