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

Open
opened 2026-01-22 13:25:52 +01:00 by admin · 0 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:52 +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#1783