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.
public transactional ( Closur\Closure $func ) : mixed | ||
$func | Closur\Closure | The function to execute transactionally. |
Результат | mixed | The value returned by $func |