/** * Rollback transaction. * * Rollback transaction, or throw exceptions if no transactions has been started. * * @throws \RuntimeException If no transaction has been started */ public function rollback() { try { $this->dbHandler->rollback(); // Clear all caches after rollback if ($this->contentTypeHandler instanceof CachingContentTypeHandler) { $this->contentTypeHandler->clearCache(); } if ($this->languageHandler instanceof CachingLanguageHandler) { $this->languageHandler->clearCache(); } } catch (Exception $e) { throw new RuntimeException($e->getMessage(), 0, $e); } }