Browse Source

Added return value from PDO::commit

Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
Dejan Geci 12 years ago
parent
commit
de5658f5a7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/database/connection.php

+ 2 - 2
laravel/database/connection.php

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