mongodb - Example of odm:query console command in Doctrine Mongo ODM -


is there exemple of query command of console tools in doctrine ? tried in symfony project following way :

./app/console doc:mongo:query acmebundle:myentity {tag:1} 

but returns whole collection, tough 1 record has tag "1". looked in source code, seems query must in json format have no idea right format, guess must compatible argument of find() method

json format expects key string. try {"tag": 1}.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -