Doctrine\DBAL\Connection::transactional
Executes a function in a transaction.
The function gets passed this Connection instance as an (optional) parameter. If an exception occurs during execution of the function or transaction commit, the transaction is rolled back and the exception re-thrown.
Signature
public function transactional(Closure
$func )
Parameters
$func
— Closure- The function to execute transactionally.