Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1514

Invalid hydration on multiple joins cross the same table

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, 2.1.4, 2.1.5
    • Fix Version/s: 2.1.5
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Simillar issue to DDC-1452. Somtime (yes, this bug is not easy to reproduce...) when you fetch objects with multiple join cross the same table (as in DDC-1452 issue), some joins are ignored and multiple queries are necessary to lazy load relations.

      I will attach falling test case soon.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed.

        Show
        Benjamin Eberlei added a comment - Fixed.
        Hide
        Benjamin Eberlei added a comment -

        Verified and i know why it happens.

        The entities ba are created before c's are created. That is why doctrine sees a proxy already and then does not fill it with the data.

        Show
        Benjamin Eberlei added a comment - Verified and i know why it happens. The entities ba are created before c's are created. That is why doctrine sees a proxy already and then does not fill it with the data.
        Hide
        Piotr Śliwa added a comment -

        Falling test case.

        Show
        Piotr Śliwa added a comment - Falling test case.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Piotr Śliwa
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: