From 96e2ee4d3610ba06e39d107aa468e25002666dd0 Mon Sep 17 00:00:00 2001
From: Bertrand Gauthier <bertrand.gauthier@unicaen.fr>
Date: Tue, 9 Apr 2019 14:41:59 +0200
Subject: [PATCH] =?UTF-8?q?Abandon=20de=20la=20colonne=20`COD=5FANU=5FPRM?=
 =?UTF-8?q?=5FIAE`=20dans=20`SYGAL=5FTHESE`=20qui=20est=20redondante=20du?=
 =?UTF-8?q?=20fait=20qu'une=20vue=20`SYGAL=5FTHESE=5FANNEE=5FUNIV`=20exist?=
 =?UTF-8?q?e.=20De=20plus,=20cette=20colonne=20remontait=20une=20ann=C3=A9?=
 =?UTF-8?q?e=20de=201ere=20inscription=20erron=C3=A9e=20en=20cas=20de=20ch?=
 =?UTF-8?q?angement=20de=20discipline.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Db/Mapping/ImportData.V1.Entity.Db.These.dcm.xml     | 3 +--
 module/ImportData/src/V1/Entity/Db/These.php             | 9 ---------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/module/ImportData/src/V1/Entity/Db/Mapping/ImportData.V1.Entity.Db.These.dcm.xml b/module/ImportData/src/V1/Entity/Db/Mapping/ImportData.V1.Entity.Db.These.dcm.xml
index a220fd4..82337c0 100644
--- a/module/ImportData/src/V1/Entity/Db/Mapping/ImportData.V1.Entity.Db.These.dcm.xml
+++ b/module/ImportData/src/V1/Entity/Db/Mapping/ImportData.V1.Entity.Db.These.dcm.xml
@@ -2,7 +2,7 @@
 <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
-    <entity name="ImportData\V1\Entity\Db\These" table="SYGAL_THESE">
+    <entity name="ImportData\V1\Entity\Db\These" table="SYGAL_THESE_2">
         <id    name="id"                      type="string"   column="ID"/>
         <field name="sourceId"                type="string"   column="SOURCE_ID"            length="6"      nullable="true"/>
         <field name="etatThese"               type="string"   column="ETA_THS"              length="1"      nullable="true"/>
@@ -12,7 +12,6 @@
         <field name="title"                   type="string"   column="LIB_THS"              length="800"    nullable="true"/>
         <field name="codeLNG"                 type="string"   column="COD_LNG"              length="4"      nullable="true"/>
         <field name="datePremiereInsc"        type="datetime" column="DAT_DEB_THS"                          nullable="true"/>
-        <field name="anneeUnivPremiereInsc"   type="integer"  column="COD_ANU_PRM_IAE"                      nullable="true"/>
         <field name="uniteRechId"             type="string"   column="UNITE_RECH_ID"        length="10"     nullable="true"/>
         <field name="ecoleDoctId"             type="string"   column="ECOLE_DOCT_ID"        length="4"      nullable="true"/>
         <field name="libPaysCotut"            type="string"   column="LIB_PAY"              length="40"     nullable="true"/>
diff --git a/module/ImportData/src/V1/Entity/Db/These.php b/module/ImportData/src/V1/Entity/Db/These.php
index b9f5b15..9c9d064 100644
--- a/module/ImportData/src/V1/Entity/Db/These.php
+++ b/module/ImportData/src/V1/Entity/Db/These.php
@@ -18,7 +18,6 @@ class These
     protected $title;
     protected $codeLNG;
     protected $datePremiereInsc;
-    protected $anneeUnivPremiereInsc;
     protected $uniteRechId;
     protected $ecoleDoctId;
     protected $libPaysCotut;
@@ -113,14 +112,6 @@ class These
         return $this->datePremiereInsc;
     }
 
-    /**
-     * @return mixed
-     */
-    public function getAnneeUnivPremiereInsc()
-    {
-        return $this->anneeUnivPremiereInsc;
-    }
-
     /**
      * @return mixed
      */
-- 
GitLab