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