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

View File

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