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

        Piotr Śliwa created issue -
        Hide
        Piotr Śliwa added a comment -

        Falling test case.

        Show
        Piotr Śliwa added a comment - Falling test case.
        Piotr Śliwa made changes -
        Field Original Value New Value
        Attachment DDC1514Test.php [ 11120 ]
        Piotr Śliwa made changes -
        Affects Version/s 2.1.5 [ 10170 ]
        Affects Version/s 2.1 [ 10022 ]
        Affects Version/s 2.1.1 [ 10153 ]
        Affects Version/s 2.1.2 [ 10154 ]
        Affects Version/s 2.1.3 [ 10164 ]
        Affects Version/s 2.1.4 [ 10165 ]
        Piotr Śliwa made changes -
        Affects Version/s 2.1.4 [ 10165 ]
        Affects Version/s 2.1.3 [ 10164 ]
        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
        Benjamin Eberlei added a comment -

        Fixed.

        Show
        Benjamin Eberlei added a comment - Fixed.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.5 [ 10170 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13226 ] jira-feedback [ 15128 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15128 ] jira-feedback2 [ 16992 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16992 ] jira-feedback3 [ 19245 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1514, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: