From f139f200518c8aa7375d0be911236b29518a48f5 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Thu, 17 Oct 2019 15:17:25 +0200
Subject: [PATCH] Ajout de l'attribut ine dans Individu et ajout de la colonne
 dans l'export

---
 .../Controller/ExportController.php           |  1 +
 .../src/Application/Entity/Db/Individu.php    | 25 +++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/module/Application/src/Application/Controller/ExportController.php b/module/Application/src/Application/Controller/ExportController.php
index 4025cd055..41e4410db 100644
--- a/module/Application/src/Application/Controller/ExportController.php
+++ b/module/Application/src/Application/Controller/ExportController.php
@@ -32,6 +32,7 @@ class ExportController extends AbstractController
             'Adresse électronique'                  => function (These $these) { return $these->getDoctorant()->getIndividu()->getEmail(); },
             'Adresse électronique personnelle'      => function (These $these) { return $these->getDoctorant()->getIndividu()->getMailContact(); },
             'Numéro étudiant'                       => function (These $these) { return $this->sourceCodeStringHelper->removePrefixFrom($these->getDoctorant()->getSourceCode()); },
+            'I.N.E.'                                => function (These $these) { return $these->getDoctorant()->getIndividu()->getIne(); },
             //These
             'Identifiant de la thèse'               => function (These $these) { return $these->getSourceCode(); },
             'Titre'                                 => function (These $these) { return $these->getTitre(); },
diff --git a/module/Application/src/Application/Entity/Db/Individu.php b/module/Application/src/Application/Entity/Db/Individu.php
index 3f463fe68..4fed8ff05 100644
--- a/module/Application/src/Application/Entity/Db/Individu.php
+++ b/module/Application/src/Application/Entity/Db/Individu.php
@@ -98,6 +98,11 @@ class Individu implements HistoriqueAwareInterface, SourceAwareInterface
      */
     private $mailsConfirmations;
 
+    /**
+     * @var string
+     */
+    private $ine;
+
 
     public function __construct() {
         $this->mailsConfirmations = new ArrayCollection();
@@ -470,4 +475,24 @@ class Individu implements HistoriqueAwareInterface, SourceAwareInterface
         }
         return null;
     }
+
+    /**
+     * @return string
+     */
+    public function getIne()
+    {
+        return $this->ine;
+    }
+
+    /**
+     * @param string $ine
+     * @return Individu
+     */
+    public function setIne($ine)
+    {
+        $this->ine = $ine;
+        return $this;
+    }
+
+
 }
\ No newline at end of file
-- 
GitLab