protected function deepCopyPageTranslation(PageTranslation $translation, Page $parent) { $copy = new PageTranslation(); $copy->setLocale($translation->getLocale()); $copy->setObject($parent); $copy->setEnabled($translation->getEnabled()); $copy->setName($translation->getName()); $copy->setDescription($translation->getDescription()); $copy->setTitle($translation->getTitle()); $copy->setSlug($translation->getSlug()); $copy->setUrl($translation->getUrl()); $copy->setCustomUrl($translation->getCustomUrl()); $copy->setMetaKeyword($translation->getMetaKeyword()); $copy->setMetaDescription($translation->getMetaDescription()); return $copy; }