mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
feb1ebe8b4
commit
c930cbb897
1 changed files with 11 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue