Skip to content

Commit 3e6728d

Browse files
Fix callback argument
1 parent 90710b4 commit 3e6728d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Orm/Database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function transaction(\Closure $callback, $attempts = 1)
255255
// We'll simply execute the given callback within a try / catch block and if we
256256
// catch any exception we can rollback this transaction so that none of this
257257
// gets actually persisted to a database or stored in a permanent fashion.
258-
$data = $callback();
258+
$data = $callback($this);
259259
$this->commit();
260260
return $data;
261261
} catch (\Exception $e) {

0 commit comments

Comments
 (0)