Ver código fonte

Merge branch 'develop'

master
Fab 4 anos atrás
pai
commit
8a5ecbd61b
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