diff --git a/src/Connection.php b/src/Connection.php index edb13efc79..baf620697f 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -1279,19 +1279,9 @@ public function transactional(Closure $func) { $this->beginTransaction(); - $successful = false; - try { $res = $func($this); - $successful = true; - } finally { - if (! $successful) { - $this->rollBack(); - } - } - - try { $this->commit(); } finally { if ($this->isTransactionActive()) {