Added return value from PDO::commit

Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
This commit is contained in:
Dejan Geci 2012-11-07 21:45:44 +01:00
parent d2fefa65aa
commit de5658f5a7
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();
}
/**