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

Added return value from PDO::commit
This commit is contained in:
Taylor Otwell 2013-01-05 12:33:17 -08:00
commit f785cb22c9
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
/**