Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-BETA4
-
Fix Version/s: 2.0-RC1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
The DDC-117 already has an implementation for this. We need a way to use the EntityRepository to query by foreign key or the related object instance.
This should be in 2.0
Issue Links
- is duplicated by
-
DDC-819
Attempting to search a recursive relationship by null results in an error...
-
Implemented, you can now do repository queries like:
$post = $em->getRepository('Post')->findByCategory($categoryId);This does however NOT allow something like the following:
$post = $em->getRepository('Post')->findByCategory($category);with $category being an instance of the entity. Only lookups per key are allowed.
It also obviously only works on the owning side of an association.