From b7e6d0259dc2ea3fa60ac388dd13a8b998090ef4 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 2 Jun 2025 17:16:26 -0400 Subject: [PATCH 1/2] DOCSP-47060: Causal consistency --- source/crud/transaction.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/source/crud/transaction.txt b/source/crud/transaction.txt index d74356f2..908ef550 100644 --- a/source/crud/transaction.txt +++ b/source/crud/transaction.txt @@ -46,6 +46,37 @@ When using the {+php-library+}, you can create a new session from a ``Client`` that created it. Using a ``Session`` with a different ``Client`` results in operation errors. +.. _php-causal-consistency: + +Causal Consistency +~~~~~~~~~~~~~~~~~~ + +.. sharedinclude:: dbx/causal-consistency.rst + + .. replacement:: insert-one-method + + ``insertOne()`` + + .. replacement:: update-one-method + + ``updateOne()`` + + .. replacement:: find-one-method + + ``findOne()`` + + .. replacement:: delete-one-method + + ``deleteOne()`` + + .. replacement:: majority-rc + + ``majority`` + + .. replacement:: majority-wc + + ``majority`` + Transaction APIs ---------------- From 4991c6d5eee90f1ca3312a766ef7ecd8d6df98e4 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 2 Jun 2025 17:21:36 -0400 Subject: [PATCH 2/2] edits --- source/crud/transaction.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/crud/transaction.txt b/source/crud/transaction.txt index 908ef550..4258bd8f 100644 --- a/source/crud/transaction.txt +++ b/source/crud/transaction.txt @@ -55,19 +55,19 @@ Causal Consistency .. replacement:: insert-one-method - ``insertOne()`` + ``MongoDB\Collection::insertOne()`` .. replacement:: update-one-method - ``updateOne()`` + ``MongoDB\Collection::updateOne()`` .. replacement:: find-one-method - ``findOne()`` + ``MongoDB\Collection::findOne()`` .. replacement:: delete-one-method - ``deleteOne()`` + ``MongoDB\Collection::deleteOne()`` .. replacement:: majority-rc