MongoDB\Driver\Session
PHP Manual

MongoDB\Driver\Session::commitTransaction

(mongodb >=1.5.0)

MongoDB\Driver\Session::commitTransactionCommits a transaction

Description

final public void MongoDB\Driver\Session::commitTransaction ( void )

This method commits an existing transaction and all the associated operations are persisted in the database.

Parameters

This function has no parameters.

Return Values

No value is returned.

Errors/Exceptions

See Also


MongoDB\Driver\Session
PHP Manual