Copied!

TransactionHandler

TransactionHandler.php : 14

The Persistence Transaction handler for Storage Engine.

Methods

publicbeginTransaction()

TransactionHandler.php : 22

Begin transaction.

public beginTransaction() : mixed

Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.

publiccommit()

TransactionHandler.php : 31

Commit transaction.

public commit() : mixed

Commit transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started

publicrollback()

TransactionHandler.php : 40

Rollback transaction.

public rollback() : mixed

Rollback transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started