Skip to content
Snippets Groups Projects
Commit 83b7c8d1 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

historisation des volumes horaires après histo de la mission

parent 1ea901af
No related branches found
No related tags found
No related merge requests found
......@@ -197,6 +197,11 @@ class SaisieController extends AbstractController
$this->getProcessusPlafond()->beginTransaction();
try {
$this->getServiceMission()->delete($mission);
//On historise les volumes horaires de la mission
$volumesHoraires = $mission->getVolumesHorairesPrevus();
foreach( $volumesHoraires as $volumesHoraire ){
$this->getServiceMission()->deleteVolumeHoraire($volumesHoraire);
}
$this->updateTableauxBord($mission);
$this->flashMessenger()->addSuccessMessage("Mission supprimée avec succès.");
} catch (\Exception $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment