public function commit() { try { $this->connection->commit(); } catch (DBALException $e) { throw new QueryException($e->getMessage(), $e->getCode(), $e); } }