symfony - Doctrine MongoDB - is there any way to build a query from JSON? -
i have arbitrary mongodb json find query string, example:
{ "address.city": "seattle"}
or
{ qty: { $gt: 5, $lt: 50 }
is there existing method create doctrine.mongodb.query object json string? or alternately query mongo directly , pass results doctrine hydration?
is there existing method create doctrine.mongodb.query object json string?
at moment no, add setquery
method builder
. more tedious, working, instantiating query
class on own.
or alternately query mongo directly , pass results doctrine hydration?
once have plain arrays data (and you're not afraid dive unitofwork
) may utilize $dm->getunitofwork()->getorcreatedocument() or employ hydratorfactory
, merge documents documentmanager
later.
Comments
Post a Comment