svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ batchinsert.xml
| From: | Derick Rethans | Date: | Wed, 08 May 2013 14:11:52 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ batchinsert.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11236@lists.php.net to get a copy of this message | ||
derick Wed, 08 May 2013 14:11:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330189
Log:
PHP-536: Clarify that continueOnError Flag does not insert valid docs when an invalid doc exists in
the batch
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml 2013-05-07 22:40:16 UTC (rev
330188)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml 2013-05-08 14:11:52 UTC (rev
330189)
@@ -63,6 +63,17 @@
If multiple errors occur, only the most recent will be reported by
<function>MongoDB::lastError</function>.
</para>
+ <note>
+ <para>
+ Please note that <literal>continueOnError</literal> affects errors
+ on the database side only. If you try to insert a document that has
+ errors (for example it contains a key with an empty name), then the
+ document is not even transferred to the database as the driver
+ detects this error and bails out.
+ <literal>continueOnError</literal> has no effect on errors detected
+ in the documents by the driver.
+ </para>
+ </note>
</listitem>
&mongo.writes.parameters.safe;
</itemizedlist>