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

Closed
opened 2026-01-22 12:54:19 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 28, 2010).

Originally assigned to: @guilhermeblanco on GitHub.

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));
Originally created by @doctrinebot on GitHub (Jul 28, 2010). Originally assigned to: @guilhermeblanco on GitHub. 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)); ```
admin added the Improvement label 2026-01-22 12:54:19 +01:00
admin closed this issue 2026-01-22 12:54:21 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 16, 2010):

Comment created by @guilhermeblanco:

Already implemented.

@doctrinebot commented on GitHub (Nov 16, 2010): Comment created by @guilhermeblanco: Already implemented.
Author
Owner

@doctrinebot commented on GitHub (Nov 16, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 16, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#892