Commit 6397c770 authored by Thomas Hamel's avatar Thomas Hamel
Browse files

[FIX] Modification du mapping de Thèse : la relation anneesUniv1ereInscription...

[FIX] Modification du mapping de Thèse : la relation anneesUniv1ereInscription ne pointait plus vers un VTheseAnneeUnivFirst
parent 2a3111c3
Loading
Loading
Loading
Loading
+2 −1
Changes for CHANGELOG.md: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,9 +5,10 @@ Journal des modifications
-----
- Recherche de thèse : Remplacement de la vue matérialisée mv_recherche_these par une simple vue 'these_rech' pour ne plus avoir de pb de recherche de thèse infructueuse nécessitant un refresh.
- Etablissements : suppression du témoin 'est établissement membre' non pertnient en cas d'absence de COMUE et redondant avec 'est établissement d'inscription'.
- [FIX] : Modification de la requête présente dans 9.0.0/03_saisie_these.sql, afin d'associer le nouveau champ pays_id (table titre_acces) aux bons pays
- [FIX] Modification de la requête présente à l'origine dans 9.0.0/03_saisie_these.sql, afin d'associer le nouveau champ pays_id (table titre_acces) aux bons pays
- [FIX] .gitlab-ci : correction des URL générées dans la release.
- [FIX] Contrainte de référence ajoutée récemment à tort (empêche la suppression d'un manuscrit de thèse déposé).
- [FIX] Modification du mapping de Thèse : la relation "anneesUniv1ereInscription" ne pointait plus vers un VTheseAnneeUnivFirst

9.0.1
-----
+2 −2
Changes for module/Application/src/Application/Controller/AutorisationInscriptionController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -45,8 +45,8 @@ class AutorisationInscriptionController extends AbstractController
                $autorisationInscription = $form->getData();

                if($autorisationInscription->getThese() && $autorisationInscription->getAutorisationInscription() === true){
                    $theseAnneeUnivPremiereInscription = $this->theseAnneeUnivService->initFromAutorisationInscription($autorisationInscription);
                    $these->addAnneesUniv1ereInscription($theseAnneeUnivPremiereInscription);
                    $theseAnneeUnivInscription = $this->theseAnneeUnivService->initFromAutorisationInscription($autorisationInscription);
                    $these->addAnneesUnivInscription($theseAnneeUnivInscription);
                    $this->theseService->saveThese($these);
                }

+1 −1
Changes for module/These/src/These/Entity/Db/Mapping/These.Entity.Db.These.dcm.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@
        <one-to-one field="titreAcces" target-entity="Application\Entity\Db\TitreAcces" mapped-by="these"/>
<!--        <one-to-many field="titreAcces" target-entity="Application\Entity\Db\TitreAcces" mapped-by="these"/>-->
        <one-to-many field="anneesUnivInscription" target-entity="These\Entity\Db\TheseAnneeUniv" mapped-by="these"/>
        <one-to-many field="anneesUniv1ereInscription" target-entity="These\Entity\Db\TheseAnneeUniv" mapped-by="these"/>
        <one-to-many field="anneesUniv1ereInscription" target-entity="These\Entity\Db\VTheseAnneeUnivFirst" mapped-by="these"/>
        <one-to-many field="rapports" target-entity="Application\Entity\Db\Rapport" mapped-by="these"/>

        <many-to-one field="etablissement" target-entity="Structure\Entity\Db\Etablissement" fetch="LAZY">
+6 −6
Changes for module/These/src/These/Entity/Db/These.php: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -1647,11 +1647,11 @@ class These implements HistoriqueAwareInterface, ResourceInterface
    /**
     * Remove anneesUnivInscription.
     *
     * @param \These\Entity\Db\TheseAnneeUniv $anneesUnivInscription
     * @param VTheseAnneeUnivFirst $anneesUnivInscription
     *
     * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
     */
    public function removeAnneesUnivInscription(\These\Entity\Db\TheseAnneeUniv $anneesUnivInscription)
    public function removeAnneesUnivInscription(VTheseAnneeUnivFirst $anneesUnivInscription)
    {
        return $this->anneesUnivInscription->removeElement($anneesUnivInscription);
    }
@@ -1659,11 +1659,11 @@ class These implements HistoriqueAwareInterface, ResourceInterface
    /**
     * Add anneesUniv1ereInscription.
     *
     * @param VTheseAnneeUnivFirst|TheseAnneeUniv $anneesUniv1ereInscription
     * @param VTheseAnneeUnivFirst $anneesUniv1ereInscription
     *
     * @return These
     */
    public function addAnneesUniv1ereInscription(\These\Entity\Db\VTheseAnneeUnivFirst|TheseAnneeUniv $anneesUniv1ereInscription)
    public function addAnneesUniv1ereInscription(VTheseAnneeUnivFirst $anneesUniv1ereInscription)
    {
        $this->anneesUniv1ereInscription[] = $anneesUniv1ereInscription;

@@ -1673,11 +1673,11 @@ class These implements HistoriqueAwareInterface, ResourceInterface
    /**
     * Remove anneesUniv1ereInscription.
     *
     * @param VTheseAnneeUnivFirst|TheseAnneeUniv $anneesUniv1ereInscription
     * @param VTheseAnneeUnivFirst $anneesUniv1ereInscription
     *
     * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
     */
    public function removeAnneesUniv1ereInscription(\These\Entity\Db\VTheseAnneeUnivFirst|TheseAnneeUniv $anneesUniv1ereInscription)
    public function removeAnneesUniv1ereInscription(VTheseAnneeUnivFirst $anneesUniv1ereInscription)
    {
        return $this->anneesUniv1ereInscription->removeElement($anneesUniv1ereInscription);
    }
+1 −1
Changes for module/These/src/These/Fieldset/Generalites/GeneralitesHydrator.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ class GeneralitesHydrator extends DoctrineObject
                $theseAnneeUnivPremiereInscription->setThese($object);
                $theseAnneeUnivPremiereInscription->setSource($this->sourceService->fetchApplicationSource());
                $theseAnneeUnivPremiereInscription->setSourceCode($this->sourceService->genereateSourceCode());
                $object->addAnneesUniv1ereInscription($theseAnneeUnivPremiereInscription);
                $object->addAnneesUnivInscription($theseAnneeUnivPremiereInscription);
            }
        }

Loading