PHP-536: Clarify that continueOnError Flag does not insert valid docs when an invalid doc exists in the batch

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330189 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2013-05-08 14:11:52 +00:00
parent feb1ebe8b4
commit c930cbb897

View file

@ -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>