It is possible for doctrine2 ODM to create the following query?
db.Product.find({ "$or": [ { "name": new RegExp("test*", "i") }, { "tags": new RegExp("public true*", "i") } ], "$or": [{ "public": false, "_id": { "$in": [ ObjectId("4e74121c4fcfa9ff7ac90000"), ObjectId("4e74121c4fcfa9ff7ac80000") ] } }, { "public": true }] });
The main issue here with doctrine2 that I dont understand is how to add addition $or in the $query?
This help me with $and operator which is still missing.
I'm currently using Symfony2 Doctrine2 Mongodb
A small example in addition to theory:
Query in
meta-language
:Query with Doctrine's
QueryBuilder
: