Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1424

Make order in DQL SELECT clause matter for hydration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      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
      

        Issue Links

          Activity

          Show
          Guilherme Blanco added a comment - Implemented!!! https://github.com/doctrine/doctrine2/commit/81cc6d9da83d217ea62bd467053fd9885d1083cd

            People

            • Assignee:
              Guilherme Blanco
              Reporter:
              Benjamin Eberlei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: