DatabaseTransactionRecord
class DatabaseTransactionRecord
Properties
| string | $connection | The name of the database connection. |
|
| int | $level | The transaction level. |
|
| DatabaseTransactionRecord|null | $parent | The parent instance of this transaction. |
|
| protected callable[] | $callbacks | The callbacks that should be executed after committing. |
|
| protected callable[] | $callbacksForRollback | The callbacks that should be executed after rollback. |
Methods
Create a new database transaction record instance.
Register a callback to be executed after committing.
Register a callback to be executed after rollback.
Execute all of the callbacks.
Execute all of the callbacks for rollback.
Get all of the callbacks.
Get all of the callbacks for rollback.
Details
at line 43
__construct(string $connection, int $level, DatabaseTransactionRecord|null $parent = null)
Create a new database transaction record instance.
at line 53
void
addCallback(callable $callback)
Register a callback to be executed after committing.
at line 61
void
addCallbackForRollback(callable $callback)
Register a callback to be executed after rollback.
at line 69
void
executeCallbacks()
Execute all of the callbacks.
at line 79
void
executeCallbacksForRollback()
Execute all of the callbacks for rollback.
at line 101
array
getCallbacks()
Get all of the callbacks.
at line 111
array
getCallbacksForRollback()
Get all of the callbacks for rollback.