public function deleteTranslationFromContent($contentId, $languageCode)
    {
        $language = $this->languageHandler->loadByLanguageCode($languageCode);

        $this->connection->beginTransaction();
        try {
            $this->deleteTranslationFromContentVersions($contentId, $language->id);
            $this->deleteTranslationFromContentNames($contentId, $languageCode);
            $this->deleteTranslationFromContentObject($contentId, $language->id);

            $this->connection->commit();
        } catch (DBALException $e) {
            $this->connection->rollBack();
            throw $e;
        }
    }
public function deleteTranslationFromContent($contentId, $languageCode)
    {
        $language = $this->languageHandler->loadByLanguageCode($languageCode);

        $this->connection->beginTransaction();
        try {
            $this->deleteTranslationFromContentVersions($contentId, $language->id);
            $this->deleteTranslationFromContentNames($contentId, $languageCode);
            $this->deleteTranslationFromContentObject($contentId, $language->id);

            $this->connection->commit();
        } catch (DBALException $e) {
            $this->connection->rollBack();
            throw $e;
        }
    }
public function deleteTranslationFromContent ( $ contentId , $ languageCode ) { $ language = $ this -> languageHandler -> loadByLanguageCode ( $ languageCode ) ; $ this -> connection -> beginTransaction ( ) ; try { $ this -> deleteTranslationFromContentVersions ( $ contentId , $ language -> id ) ; $ this -> deleteTranslationFromContentNames ( $ contentId , $ languageCode ) ; $ this -> deleteTranslationFromContentObject ( $ contentId , $ language -> id ) ; $ this -> connection -> commit ( ) ; } catch ( DBALException $ e ) { $ this -> connection -> rollBack ( ) ; throw $ e ; } }
Remove the specified translation from the Content Object Version.

@param int $contentId
@param string $languageCode language code of the translation
@throws \Doctrine\DBAL\DBALException
Remove the specified translation from the Content Object Version .