Doctrine\ODM\PHPCR\UnitOfWork::isTranslationRemoved PHP Method

isTranslationRemoved() private method

it does not check if there is a translation for the given locale
private isTranslationRemoved ( object $document, string $locale ) : boolean
$document object
$locale string
return boolean
    private function isTranslationRemoved($document, $locale)
    {
        $oid = spl_object_hash($document);
        return isset($this->documentTranslations[$oid]) && empty($this->documentTranslations[$oid][$locale]) && array_key_exists($locale, $this->documentTranslations[$oid]);
    }
UnitOfWork