FALSE. If FALSE, the
program continues executing without waiting for a database response.
If TRUE, the program will wait for the database response and throw a
MongoCursorException if the insert did not
succeed.
"
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
> try
> {
> $coll_mmemb2->insert($daten_mmemb2, array('safe'=>true,
> 'ContinueOnError'=>true));
> }
> catch(MongoCursorException $e)
> {
> die($e);
> }
Just don't add the "die". Without the "die", the script will happily
continue as you did succesfully catch and handle the exception.
continueOnError is only a flag for batchInsert() as Sam said.
cheers,
Derick
--
http://mongodb.org | http://derickrethans.nl
twitter: @derickr and @mongodb
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.