Transaction
Less than 1 minute
Transaction
Trait providing transactional operations for PDO database connections.
trait TransactionIncludes methods to begin, commit, cancel (rollback), and check transaction state.
Methods
begin
Begins a new database transaction.
public begin(): boolcancel
Cancels the current transaction and rolls back changes.
public cancel(): boolcommit
Commits the current transaction, saving all changes.
public commit(): boolinTransaction
Checks if a transaction is currently active.
public inTransaction(): boolGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000