private function doRemoveAllTranslations($document, ClassMetadata $metadata)
{
if (!$this->isDocumentTranslatable($metadata)) {
return;
}
$node = $this->session->getNode($this->getDocumentId($document));
$strategy = $this->dm->getTranslationStrategy($metadata->translator);
$strategy->removeAllTranslations($document, $node, $metadata);
}