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
Post a Comment