Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-2084: EM#find() with association as PK #2767

Closed
doctrinebot opened this issue Oct 16, 2012 · 3 comments
Closed

DDC-2084: EM#find() with association as PK #2767

doctrinebot opened this issue Oct 16, 2012 · 3 comments
Labels
Milestone

Comments

@doctrinebot
Copy link

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
Copy link
Author

Comment created by @FabioBatSilva:

Fixed : d6d5c34

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot
Copy link
Author

Comment created by nikita2206:

What about composite keys? AFAIS, this code checks if id is object, but it could be an array of objects.

@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant