Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-736

Nasty ordering issue with fetch-joins

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA3
    • Fix Version/s: 2.0-RC1
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Will not work correctly:

      select c, ca from Cart ca join ca.customer c

      Works correctly:

      select ca, c from Cart ca join ca.customer c

      In the first case the ordering of the DQL aliases causes associations to be skipped during hydration.

      1. ddc736.patch
        4 kB
        Benjamin Eberlei
      2. ddc736-simplified.patch
        4 kB
        Roman S. Borschel
      3. DDC736Test.php
        1 kB
        Roman S. Borschel

        Issue Links

          Activity

          Roman S. Borschel created issue -
          Roman S. Borschel made changes -
          Field Original Value New Value
          Fix Version/s 2.0-RC1 [ 10091 ]
          Fix Version/s 2.0-BETA4 [ 10072 ]
          Description
          Will not work correctly:

          select c, ca from Cart ca join ca.customer c

          Works correctly:

          select ca, c from Cart ca join ca.customer c

          In the first case the ordering of the DQL aliases causes associations to be skipped during hydration.
          Will not work correctly:

          select c, ca from Cart ca join ca.customer c

          Works correctly:

          select ca, c from Cart ca join ca.customer c

          In the first case the ordering of the DQL aliases causes associations to be skipped during hydration.
          Roman S. Borschel made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Roman S. Borschel made changes -
          Attachment DDC736Test.php [ 10846 ]
          Benjamin Eberlei made changes -
          Attachment ddc736.patch [ 10857 ]
          Roman S. Borschel made changes -
          Attachment ddc736-simplified.patch [ 10860 ]
          Benjamin Eberlei made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Link This issue is referenced by DDC-915 [ DDC-915 ]
          Benjamin Eberlei made changes -
          Link This issue is referenced by DDC-925 [ DDC-925 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 11738 ] jira-feedback [ 14530 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 14530 ] jira-feedback2 [ 16394 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 16394 ] jira-feedback3 [ 18647 ]

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Roman S. Borschel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: