Browse Source

Merge branch 'develop'

master
Fab 4 years ago
parent
commit
8a5ecbd61b
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      ShopBundle/Services/UtilsProcess.php

+ 4
- 5
ShopBundle/Services/UtilsProcess.php View File

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

Loading…
Cancel
Save