Commit 3de611d5 authored by Florian Joriot's avatar Florian Joriot
Browse files

Changement de code structure utilisé pour connecteur pégase

parent 14cc7584
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ class ObjetFormationReader implements ReaderInterface
                    e.id_objet_maquette_parent,
                    om.libelle_long,
                    om.code_structure,     
                    om.structures_porteuse,  
                    om.code,       
                    om.temoin_tele_enseignement,      
                    esp.annee_universitaire as annee_universitaire,
@@ -37,7 +38,12 @@ class ObjetFormationReader implements ReaderInterface
            if (!isset($objetsFormation[$element['id']])) {
                $objetFormation = new ObjetFormation();
                $objetFormation->setLibelle($element['libelle_long']);
                if ($element['structures_porteuse'] != null) {
                    $objetFormation->setStructureId($element['structures_porteuse']);
                }else{
                    $objetFormation->setStructureId($element['code_structure']);
                }

                $objetFormation->setAnneeUniversitaire($element['annee_universitaire']);
                $objetFormation->setDateDebut($element['date_debut_validite']);
                $objetFormation->setDateFin($element['date_fin_validite']);