public function cloneAttributeTranslations($table,
$sourceForeignKey,
$targetForeignKey) { if (!
$this->mapping->
isAttributeTable($table)) { throw new Exception(sprintf('Table %s is no attribute table',
$table));
} if (!
$sourceForeignKey) { throw new Exception('No foreign key provided'
);
} $translations =
$this->dataLoader->
loadTranslations($table,
$sourceForeignKey);
foreach ($translations as $translation) { $this->
saveTranslation($translation,
$targetForeignKey);
} } /**
* @param array $translation
* @param int $foreignKey
*/
private function saveTranslation($translation,
$foreignKey) {