Commit ea7b0f7d authored by Derick Rethans's avatar Derick Rethans

PHPLIB-364: Document that transactions do not allow per-op read/write concerns

parent caaa0cc3
......@@ -42,6 +42,11 @@ description: |
This is not supported for server versions prior to 3.2 and will result in an
exception at execution time if used.
It is not possible to specify a :manual:`read concern
</reference/read-concern>` for individual operations as part of a
transaction. Instead, set the ``readConcern`` option when starting the
transaction with :php:`startTransaction <mongodb-driver-session.starttransaction>`.
interface: phpmethod
operation: ~
optional: true
......@@ -68,6 +73,11 @@ type: :php:`MongoDB\\Driver\\WriteConcern <class.mongodb-driver-writeconcern>`
description: |
:manual:`Write concern </reference/write-concern>` to use for the operation.
Defaults to the collection's write concern.
It is not possible to specify a :manual:`write concern
</reference/write-concern>` for individual operations as part of a
transaction. Instead, set the ``writeConcern`` option when starting the
transaction with :php:`startTransaction <mongodb-driver-session.starttransaction>`.
interface: phpmethod
operation: ~
optional: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment