Ver código fonte

[Backoffice] Duplication de fiche : slug mis à jour

feature/export_comptable
Fab 4 anos atrás
pai
commit
be6d00ca5d
1 arquivos alterados com 4 adições e 5 exclusões
  1. +4
    -5
      ShopBundle/Services/UtilsProcess.php

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

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

Carregando…
Cancelar
Salvar