Loading module/Application/src/Application/Controller/ValidationController.php +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class ValidationController extends AbstractController $notification->setThese($these); if ($action === 'valider') { $this->validationService->validateRdvBu($these); $this->validationService->validateRdvBu($these, $this->userContextService->getIdentityIndividu()); $successMessage = "Validation enregistrée avec succès."; // notification (doctorant: à la 1ere validation seulement) Loading module/Application/src/Application/QueryBuilder/ValidationQueryBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class ValidationQueryBuilder extends DefaultQueryBuilder $this ->addSelect("t, tv, i") ->join("$this->rootAlias.these", "t") ->join("$this->rootAlias.individu", "i") ->leftJoin("$this->rootAlias.individu", "i") ->join("$this->rootAlias.typeValidation", 'tv') ; Loading module/Application/src/Application/Service/These/TheseService.php +1 −1 Original line number Diff line number Diff line Loading @@ -421,7 +421,7 @@ class TheseService extends BaseService implements ListenerAggregateInterface // si tout est renseigné, on valide automatiquement if ($this->isInfosBuSaisies($these)) { $this->validationService->validateRdvBu($these); $this->validationService->validateRdvBu($these, $this->userContextService->getIdentityIndividu()); $successMessage = "Validation enregistrée avec succès."; // notification BDD et BU + doctorant (à la 1ere validation seulement) Loading module/Application/src/Application/Service/Validation/ValidationService.php +4 −3 Original line number Diff line number Diff line Loading @@ -57,11 +57,12 @@ class ValidationService extends BaseService /** * @param These $these * @param Individu $createur * @return Validation */ public function validateRdvBu(These $these) public function validateRdvBu(These $these, Individu $createur) { $v = new Validation($this->getTypeValidation(TypeValidation::CODE_RDV_BU), $these); $v = new Validation($this->getTypeValidation(TypeValidation::CODE_RDV_BU), $these, $createur); $this->entityManager->persist($v); $this->entityManager->flush($v); Loading @@ -85,7 +86,7 @@ class ValidationService extends BaseService if (!$v) { throw new RuntimeException( sprintf("Aucune validation de type '%s' trouvée pour la thèse %s", TypeValidation::CODE_RDV_BU, $these)); sprintf("Aucune validation de type '%s' trouvée pour la thèse %s", TypeValidation::CODE_RDV_BU, $these->getId())); } $v->historiser(); Loading Loading
module/Application/src/Application/Controller/ValidationController.php +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class ValidationController extends AbstractController $notification->setThese($these); if ($action === 'valider') { $this->validationService->validateRdvBu($these); $this->validationService->validateRdvBu($these, $this->userContextService->getIdentityIndividu()); $successMessage = "Validation enregistrée avec succès."; // notification (doctorant: à la 1ere validation seulement) Loading
module/Application/src/Application/QueryBuilder/ValidationQueryBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class ValidationQueryBuilder extends DefaultQueryBuilder $this ->addSelect("t, tv, i") ->join("$this->rootAlias.these", "t") ->join("$this->rootAlias.individu", "i") ->leftJoin("$this->rootAlias.individu", "i") ->join("$this->rootAlias.typeValidation", 'tv') ; Loading
module/Application/src/Application/Service/These/TheseService.php +1 −1 Original line number Diff line number Diff line Loading @@ -421,7 +421,7 @@ class TheseService extends BaseService implements ListenerAggregateInterface // si tout est renseigné, on valide automatiquement if ($this->isInfosBuSaisies($these)) { $this->validationService->validateRdvBu($these); $this->validationService->validateRdvBu($these, $this->userContextService->getIdentityIndividu()); $successMessage = "Validation enregistrée avec succès."; // notification BDD et BU + doctorant (à la 1ere validation seulement) Loading
module/Application/src/Application/Service/Validation/ValidationService.php +4 −3 Original line number Diff line number Diff line Loading @@ -57,11 +57,12 @@ class ValidationService extends BaseService /** * @param These $these * @param Individu $createur * @return Validation */ public function validateRdvBu(These $these) public function validateRdvBu(These $these, Individu $createur) { $v = new Validation($this->getTypeValidation(TypeValidation::CODE_RDV_BU), $these); $v = new Validation($this->getTypeValidation(TypeValidation::CODE_RDV_BU), $these, $createur); $this->entityManager->persist($v); $this->entityManager->flush($v); Loading @@ -85,7 +86,7 @@ class ValidationService extends BaseService if (!$v) { throw new RuntimeException( sprintf("Aucune validation de type '%s' trouvée pour la thèse %s", TypeValidation::CODE_RDV_BU, $these)); sprintf("Aucune validation de type '%s' trouvée pour la thèse %s", TypeValidation::CODE_RDV_BU, $these->getId())); } $v->historiser(); Loading