Ejemplo n.º 1
0
 private function addTranslation(ObjectManager $manager, Category $category, $locale, $name, $description)
 {
     $category->setName($name);
     $category->setDescription($description);
     $manager->bindTranslation($category, $locale);
     $manager->flush();
 }