[DDC-2084] EM#find() with association as PK Created: 16/Oct/12 Updated: 08/Sep/13 Resolved: 06/Nov/12
|Project:||Doctrine 2 - ORM|
|Affects Version/s:||Git Master|
|Reporter:||Nikita Nefedov||Assignee:||Fabio B. Silva|
Say I have a association as primary key in my entity, and I want to find it by id.
I can implement __toString in my entity, but I think this is work of ORM.
|Comment by Fabio B. Silva [ 06/Nov/12 ]|
|Comment by Nikita Nefedov [ 06/Nov/12 ]|
What about composite keys? AFAIS, this code checks if id is object, but it could be an array of objects.