(mongodb >=1.5.0)
MongoDB\Driver\Session::commitTransaction — Commits a transaction
Saves the changes made by the operations in the multi-document transaction and ends the transaction. Until the commit, none of the data changes made from within the transaction are visible outside the transaction.
Cette fonction ne contient aucun paramètre.
Aucune valeur n'est retournée.
"errorLabels"
element, and this array contains a
"TransientTransactionError"
or
"UnUnknownTransactionCommitResult"
value, it is safe to re-try
the whole transaction. In newer versions of the
driver,
MongoDB\Driver\Exception\RuntimeException::hasErrorLabel()
should be used to test for this situation instead.