Open
Description
Q | A |
---|---|
New Feature | yes |
RFC | no |
BC Break | no |
The query builder should allow queries like
->field('memberships.organization')->references($organization)
Currently I'm forced to know how the reference is stored and then write
->field('memberships.organization')->equals(new \MongoId($organization->getMongoId()))
This is because Doctrine\ODM\MongoDB\Query\Expr::getReferenceMapping
only checks field mapping.