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

} }


if($newEntity instanceof SluggableInterface){ if($newEntity instanceof SluggableInterface){
$newEntity->setTitle($newEntity->getTitle().' ');
$this->em->persist($newEntity);
if($flush)$this->em->flush();
$newEntity->setSlug(null);
} }

$this->em->persist($newEntity); $this->em->persist($newEntity);
if($flush){
$this->em->flush();
}
if($flush)$this->em->flush();




return $newEntity; return $newEntity;

Loading…
Cancel
Save