Open MatTheCat opened 6 years ago
I was pretty sure we had a similar request in the past but as I can't find I'm gonna keep this open. Scheduling for 2.x, but if @MatTheCat you'd like to tackle this yourself it might find a way into 1.3 :)
I did a quick search but couldn't find anything. As I have a workaround and little time I don't think I'll be able to help :confused:
I was pretty sure we had a similar request in the past but as I can't find I'm gonna keep this open.
You were thinking of #1723, which dealt with a similar issue but without the references
call: https://github.com/doctrine/mongodb-odm/issues/1723#issuecomment-356531034
Thanks @alcaeus :older_man:
The query builder should allow queries like
Currently I'm forced to know how the reference is stored and then write
This is because
Doctrine\ODM\MongoDB\Query\Expr::getReferenceMapping
only checks field mapping.