class
Illuminate
/
Database
/
DatabaseTransactionRecord
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
DatabaseTransactionRecord
Properties
public
$connection string
The name of the database connection.
Default: null
public
$level int
The transaction level.
Default: null
protected
$callbacks array
The callbacks that should be executed after committing.
Default: []
Methods
public
__construct ( $connection , $level ) : void
Create a new database transaction record instance.
Parameters
- $connection string
- $level int
public
addCallback ( $callback ) : void
Register a callback to be executed after committing.
Parameters
- $callback callable
public
executeCallbacks ( ) : void
Execute all of the callbacks.
public
getCallbacks ( ) : array
Get all of the callbacks.