[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    


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

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 Thu Sep 03 11:32:48 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.