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

historisation des volumes horaires après histo de la mission

(cherry picked from commit 83b7c8d1)
parent 7aa307cc
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