[DDC-2084] EM#find() with association as PK Created: 16/Oct/12 Updated: 06/Nov/12 Resolved: 06/Nov/12 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | Git Master |
| Fix Version/s: | None |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | Nikita Nefedov | Assignee: | Fabio B. Silva |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
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. |
| Comments |
| Comment by Fabio B. Silva [ 06/Nov/12 ] |
|
Fixed : https://github.com/doctrine/doctrine2/commit/d6d5c341e220ff7aec50c8ecabd5d0b8be2e0804 |
| 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. |