Skip to content


DDC-722: EntityRepository::find(One?)By should also support Associations #5235

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user @guilhermeblanco:

We should allow EntityRepository to also support associations fetching (when fetched Entity is the owning side).

$employee = $em->getRepository('Employee')->findByEmployer($em->getReference('Employer', $id));

Comment created by @guilhermeblanco:

Already implemented.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-RC1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.