note 119606 added to class.mongodb-driver-cursor
| From: | tdrpic | Date: | Thu, 14 Jul 2016 20:03:38 +0000 |
| Subject: | note 119606 added to class.mongodb-driver-cursor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206018@lists.php.net to get a copy of this message | ||
If you find that it would be easier to use arrays (instead of objects) for the returned documents,
add the following after executing your query:
$cursor->setTypeMap(['root' => 'array', 'document' =>
'array', 'array' => 'array']);
----
Server IP: 72.52.91.14
Probable Submitter: 184.183.182.200
----
Manual Page -- http://php.net/manual/en/class.mongodb-driver-cursor.php
Edit -- https://master.php.net/note/edit/119606
Del: integrated -- https://master.php.net/note/delete/119606/integrated
Del: useless -- https://master.php.net/note/delete/119606/useless
Del: bad code -- https://master.php.net/note/delete/119606/bad+code
Del: spam -- https://master.php.net/note/delete/119606/spam
Del: non-english -- https://master.php.net/note/delete/119606/non-english
Del: in docs -- https://master.php.net/note/delete/119606/in+docs
Del: other reasons-- https://master.php.net/note/delete/119606
Reject -- https://master.php.net/note/reject/119606
Search -- https://master.php.net/manage/user-notes.php