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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -