We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186c4b3 commit d994b6bCopy full SHA for d994b6b
src/Databases/MySQL.php
@@ -201,7 +201,7 @@ public function transactionRollback() {
201
public function transaction($callback) {
202
try {
203
$this->pdo->beginTransaction();
204
- call_user_func($callback);
+ call_user_func($callback, $this);
205
$this->pdo->commit();
206
} catch (\Exception $e) {
207
$this->pdo->rollBack();
0 commit comments