Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2660

ResultSetMappingBuilder hydration associationMappings identifiers

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.3.4
    • Fix Version/s: 2.3.5, 2.4.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When you try to create a resultsetmappingbuilder for an entity with composite id made of associations. The result is not what we expect.

      eg : SELECT o.product_id, o.customer_id FROM customer_order o

        Activity

        Jeremie Tom tom created issue -
        Hide
        Jeremie Tom tom added a comment -

        It's easier to understand with a testcase, the problem is in the addAllClassFields method that for association mapping call the addMetaResult without saying if the column is an identifier or not

        Show
        Jeremie Tom tom added a comment - It's easier to understand with a testcase, the problem is in the addAllClassFields method that for association mapping call the addMetaResult without saying if the column is an identifier or not
        Jeremie Tom tom made changes -
        Field Original Value New Value
        Attachment DDC2660Test.php [ 11630 ]
        Hide
        Benjamin Eberlei added a comment -

        Fixed and merged into 2.4 and 2.3 release branches.

        Show
        Benjamin Eberlei added a comment - Fixed and merged into 2.4 and 2.3 release branches.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3.5 [ 10521 ]
        Fix Version/s 2.4.1 [ 10528 ]
        Resolution Fixed [ 1 ]

        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-2660, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jeremie Tom tom
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: