Commit 61c6e37e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

update MacroService

parent 7348049b
Pipeline #11016 passed with stage
in 25 seconds
......@@ -24,7 +24,6 @@ class MacroService {
public function create(Macro $macro) : Macro
{
try {
$macro->updateCreation($this->getUserService());
$this->getEntityManager()->persist($macro);
$this->getEntityManager()->flush($macro);
} catch (ORMException $e) {
......@@ -40,7 +39,6 @@ class MacroService {
public function update(Macro $macro) : Macro
{
try {
$macro->updateModification($this->getUserService());
$this->getEntityManager()->flush($macro);
} catch (ORMException $e) {
throw new RuntimeException("Un problème est survenue lors de l'enregistrement en BD.", $e);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment