svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ find.xml
| From: | Kristina Chodorow | Date: | Thu, 18 Nov 2010 19:10:04 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ find.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7437@lists.php.net to get a copy of this message | ||
kristina Thu, 18 Nov 2010 19:10:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305515
Log:
addendum on collections w/out _ids
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongocollection/find.xml
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/find.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/find.xml 2010-11-18 19:03:59 UTC (rev 305514)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/find.xml 2010-11-18 19:10:04 UTC (rev 305515)
@@ -129,6 +129,13 @@
the results into memory, so do not do this for result sets that are larger
than memory!
</para>
+ <para>
+ Also, certain system collections do not have an <literal>_id</literal>
+ field. If you are dealing with a collection that might have documents
+ without <literal>_id</literal>s, pass &false; as the second argument to
+ <function>iterator_to_array</function> (so that it will not try to use the
+ non-existent <literal>_id</literal> values as keys).
+ </para>
</example>
</refsect1>