@@ -64,13 +64,12 @@ class UtilsProcess | |||
} | |||
if($newEntity instanceof SluggableInterface){ | |||
$newEntity->setTitle($newEntity->getTitle().' '); | |||
$this->em->persist($newEntity); | |||
if($flush)$this->em->flush(); | |||
$newEntity->setSlug(null); | |||
} | |||
$this->em->persist($newEntity); | |||
if($flush){ | |||
$this->em->flush(); | |||
} | |||
if($flush)$this->em->flush(); | |||
return $newEntity; |