From 26d4bbc99780a7ac0bfcc83a1c84f45cb0ab3815 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 6 Mar 2012 18:58:54 +0000 Subject: [PATCH] Document continueOnError. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323964 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mongo/mongocollection/batchinsert.xml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reference/mongo/mongocollection/batchinsert.xml b/reference/mongo/mongocollection/batchinsert.xml index 903aa64008..2901258e3c 100644 --- a/reference/mongo/mongocollection/batchinsert.xml +++ b/reference/mongo/mongocollection/batchinsert.xml @@ -66,6 +66,20 @@ and will override setting safe to &false;. + + + "continueOnError" + + + Boolean, defaults to &false;. If set, the database will not stop + processing a bulk insert if one fails (eg due to duplicate IDs). + This makes bulk insert behave similarly to a series of single + inserts, except that calling MongoDB::lastError + will have an error set if any insert fails, not just the last one. + If multiple errors occur, only the most recent will be reported by + MongoDB::lastError. + + @@ -121,6 +135,12 @@ before) and added "fsync" option. + + 1.2.7 + + The continueOnError flag has been added. + +