[DDC-2660] ResultSetMappingBuilder hydration associationMappings identifiers Created: 08/Sep/13 Updated: 08/Sep/13 Resolved: 08/Sep/13
|Project:||Doctrine 2 - ORM|
|Affects Version/s:||2.4, 2.3.4|
|Fix Version/s:||2.3.5, 2.4.1|
|Reporter:||Jeremie Tom tom||Assignee:||Benjamin Eberlei|
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.