You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace an existing document in a collection, identified by the document itself
550
550
*
551
-
* This will update the document on the server
551
+
* This will replace the document on the server
552
552
*
553
-
* This will throw if the document cannot be updated
553
+
* This will throw if the document cannot be replaced
554
554
*
555
555
* If policy is set to error (locally or globally through the ConnectionOptions)
556
556
* and the passed document has a _rev value set, the database will check
557
557
* that the revision of the to-be-replaced document is the same as the one given.
558
558
*
559
559
* @throws Exception
560
560
*
561
-
* @param Document $document - document to be updated
561
+
* @param Document $document - document to be replaced
562
562
* @param array $options - optional, array of options
563
563
* <p>Options are :
564
-
* <li>'policy' - update policy to be used in case of conflict ('error', 'last' or NULL [use default])</li>
564
+
* <li>'policy' - replace policy to be used in case of conflict ('error', 'last' or NULL [use default])</li>
565
565
* <li>'waitForSync' - can be used to force synchronisation of the document update operation to disk even in case that the waitForSync flag had been disabled for the entire collection</li>
566
566
* </p>
567
567
*
568
568
* @return bool - always true, will throw if there is an error
0 commit comments