note 106273 added to class.mongocursor
| From: | adrian dot zurek at netmedia dot com dot pl | Date: | Mon, 24 Oct 2011 11:08:02 +0000 |
| Subject: | note 106273 added to class.mongocursor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184087@lists.php.net to get a copy of this message | ||
One *VERY* important note, if You do:
$cursor = $collection->find(array(), array('_id' => 0)); // ommit '_id'
field in result
then:
var_dump(iterator_to_array($cursor));
will return only *ONE* document, not all!
----
Server IP: 195.114.0.19
Probable Submitter: 84.40.247.34
----
Manual Page -- http://www.php.net/manual/en/class.mongocursor.php
Edit -- https://master.php.net/note/edit/106273
Del: integrated -- https://master.php.net/note/delete/106273/integrated
Del: useless -- https://master.php.net/note/delete/106273/useless
Del: bad code -- https://master.php.net/note/delete/106273/bad+code
Del: spam -- https://master.php.net/note/delete/106273/spam
Del: non-english -- https://master.php.net/note/delete/106273/non-english
Del: in docs -- https://master.php.net/note/delete/106273/in+docs
Del: other reasons-- https://master.php.net/note/delete/106273
Reject -- https://master.php.net/note/reject/106273
Search -- https://master.php.net/manage/user-notes.php