MongoDB\Driver\Session
PHP Manual

MongoDB\Driver\Session::abortTransaction

(mongodb >=1.5.0)

MongoDB\Driver\Session::abortTransactionAborts a transaction

Description

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

This method aborts an existing transaction and all the associated operations are rolled back. It is like all operations that were part of this transaction never existed.

Parameters

This function has no parameters.

Return Values

No value is returned.

Errors/Exceptions

See Also


MongoDB\Driver\Session
PHP Manual