Commit 626c2115 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout des synchronisations lors de modifications et de suppressions

parent a185514c
Loading
Loading
Loading
Loading
Loading
+5 −0
Changes for module/Application/src/Application/Service/Structure/StructureService.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -208,6 +208,9 @@ class StructureService extends BaseService
            $this->getEntityManager()->rollback();
            throw new RuntimeException("Erreur rencontrée lors de l'enregistrement des substitutions", null, $e);
        }

        $this->synchroService->addService('these');
        $this->synchroService->synchronize();
    }

    /**
@@ -243,6 +246,8 @@ class StructureService extends BaseService
            throw new RuntimeException("Erreur rencontrée lors de la supression des substitutions", null, $e);
        }

        $this->synchroService->addService('these');
        $this->synchroService->synchronize();
        return $structureSubstits;
    }