Merge pull request #1428 from dejangeci/feature/dbtransaction-return
Added return value from PDO::commit
This commit is contained in:
commit
f785cb22c9
|
@ -101,7 +101,7 @@ protected function grammar()
|
|||
* Execute a callback wrapped in a database transaction.
|
||||
*
|
||||
* @param callback $callback
|
||||
* @return void
|
||||
* @return bool
|
||||
*/
|
||||
public function transaction($callback)
|
||||
{
|
||||
|
@ -121,7 +121,7 @@ public function transaction($callback)
|
|||
throw $e;
|
||||
}
|
||||
|
||||
$this->pdo->commit();
|
||||
return $this->pdo->commit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue