Commit 2b6e1b7c authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour enregistrer les modifications sur un service référentiel déjà...

Correction pour enregistrer les modifications sur un service référentiel déjà existant (commentaires) (#60707)
parent 264e0be4
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Referentiel/src/Service/ServiceReferentielService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ class ServiceReferentielService extends AbstractEntityService
            $entity = $serviceAllreadyExists;
        }

        $this->getEntityManager()->persist($entity);
        $entity = parent::save($entity);
        foreach ($entity->getVolumeHoraireReferentiel() as $volumeHoraire) {
            if ($volumeHoraire->getRemove()) {
                $this->getServiceVolumeHoraireReferentiel()->delete($volumeHoraire);