(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.
Esta función no tiene parámetros.
No devuelve ningún valor.
"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.