Commit f785cb22 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1428 from dejangeci/feature/dbtransaction-return

Added return value from PDO::commit
parents 10b87325 de5658f5
......@@ -101,7 +101,7 @@ class Connection {
* Execute a callback wrapped in a database transaction.
*
* @param callback $callback
* @return void
* @return bool
*/
public function transaction($callback)
{
......@@ -121,7 +121,7 @@ class Connection {
throw $e;
}
$this->pdo->commit();
return $this->pdo->commit();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment