Commit de5658f5 authored by Dejan Geci's avatar Dejan Geci

Added return value from PDO::commit

Signed-off-by: 's avatarDejan Geci <dejan.geci@gmail.com>
parent d2fefa65
...@@ -101,7 +101,7 @@ class Connection { ...@@ -101,7 +101,7 @@ class Connection {
* Execute a callback wrapped in a database transaction. * Execute a callback wrapped in a database transaction.
* *
* @param callback $callback * @param callback $callback
* @return void * @return bool
*/ */
public function transaction($callback) public function transaction($callback)
{ {
...@@ -121,7 +121,7 @@ class Connection { ...@@ -121,7 +121,7 @@ class Connection {
throw $e; 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