Methods |
public
|
__construct(): void
Create a new database transactions manager instance.
Create a new database transactions manager instance.
|
#
|
public
|
begin(string $connection, int $level): void
Start a new database transaction.
Start a new database transaction.
|
#
|
public
|
rollback(string $connection, int $level): void
Rollback the active database transaction.
Rollback the active database transaction.
|
#
|
public
|
commit(string $connection): void
Commit the active database transaction.
Commit the active database transaction.
|
#
|
public
|
addCallback(callable $callback): void
Register a transaction callback.
Register a transaction callback.
|
#
|
public
|
getTransactions(): Collection
Get all the transactions.
Get all the transactions.
|
#
|