Skip to content

Commit

Permalink
Fix callback argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriBouteille committed Nov 27, 2024
1 parent 90710b4 commit 3e6728d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orm/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function transaction(\Closure $callback, $attempts = 1)
// We'll simply execute the given callback within a try / catch block and if we
// catch any exception we can rollback this transaction so that none of this
// gets actually persisted to a database or stored in a permanent fashion.
$data = $callback();
$data = $callback($this);
$this->commit();
return $data;
} catch (\Exception $e) {
Expand Down

0 comments on commit 3e6728d

Please sign in to comment.