mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2084: EM#find() with association as PK #2628
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 16, 2012).
Jira issue originally created by user nikita2206:
Say I have a association as primary key in my entity, and I want to find it by id.
I'm calling EntityManager#find("MyEntity1", MyEntity2 $entity),
then it calls UnitOfWork#tryGetById() wich makes implode of sorted ids, and that is error, because sortedId contains object.
I can implement **toString in my entity, but I think this is work of ORM.
What are your thoughts?
I could fix that, but is there some instruction on Doctrine's workflow?
@doctrinebot commented on GitHub (Nov 6, 2012):
Comment created by @FabioBatSilva:
Fixed :
d6d5c341e2@doctrinebot commented on GitHub (Nov 6, 2012):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Nov 6, 2012):
Comment created by nikita2206:
What about composite keys? AFAIS, this code checks if id is object, but it could be an array of objects.