eZ\Publish\Core\Persistence\Legacy\TransactionHandler::rollback PHP Method

rollback() public method

Rollback transaction, or throw exceptions if no transactions has been started.
public rollback ( )
    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);
        }
    }