Explorar el Código

[Backoffice] Duplication de fiche : slug mis à jour

feature/export_comptable
Fab hace 4 años
padre
commit
be6d00ca5d
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. +4
    -5
      ShopBundle/Services/UtilsProcess.php

+ 4
- 5
ShopBundle/Services/UtilsProcess.php Ver fichero

@@ -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;

Cargando…
Cancelar
Guardar