Example #1
0
 /**
  * Commits a transaction
  *
  * @throws DatabaseException
  */
 public function commit()
 {
     try {
         $commit = $this->pdo->commit();
         if (!$commit) {
             throw DatabaseException::pdoError("Failed to commit transaction");
         }
     } catch (\PDOException $e) {
         throw DatabaseException::pdoError($e->getMessage());
     }
 }