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

        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
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: