PHP Class YetORM\Transaction

Datei anzeigen Open project: uestla/yetorm Class Usage Examples

Public Methods

Method Description
__construct ( Connection $connection )
begin ( ) : void
commit ( ) : void
rollback ( ) : void
transaction ( Closure $callback ) : mixed

Private Methods

Method Description
getDsnKey ( ) : string

Method Details

__construct() public method

public __construct ( Connection $connection )
$connection Nette\Database\Connection

begin() public method

public begin ( ) : void
return void

commit() public method

public commit ( ) : void
return void

rollback() public method

public rollback ( ) : void
return void

transaction() public method

public transaction ( Closure $callback ) : mixed
$callback Closure
return mixed