[DDC-2660] ResultSetMappingBuilder hydration associationMappings identifiers Created: 08/Sep/13  Updated: 08/Sep/13  Resolved: 08/Sep/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.4, 2.3.4
Fix Version/s: 2.3.5, 2.4.1
Security Level: All

Type: Bug Priority: Major
Reporter: Jeremie Tom tom Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None

Attachments: File DDC2660Test.php    

 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



 Comments   
Comment by Jeremie Tom tom [ 08/Sep/13 ]

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

Comment by Benjamin Eberlei [ 08/Sep/13 ]

Fixed and merged into 2.4 and 2.3 release branches.

Generated at Sun Oct 26 09:57:29 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.