Commit 38cb2229 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Les dates d'insertion des données dans les tables sont désormais retournées par le web service

parent 398cdb77
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -22,6 +22,15 @@ class TableService
     */
    private $servicesToEntityClassesConfig;

    /**
     * Liste des colonnes à exclure lors de la mise à jour des tables sources.
     *
     * @var array
     */
    private $excludedColumnNames = [
        'SOURCE_INSERT_DATE',
    ];

    /**
     * @param EntityManager $entityManager
     */
@@ -110,6 +119,9 @@ class TableService
            $tableName = $metadata->getTableName();
            $columnNames = $metadata->getColumnNames();

            // exclusion éventuelle de certaines colonnes
            $columnNames = array_diff($columnNames, $this->excludedColumnNames);

            $sqlParts[] = sprintf($deleteTemplate, $tableName);
            $sqlParts[] = sprintf($updateTemplate, $tableName, $cols = implode(', ', $columnNames), $cols, $tableName);
        }
+9 −94
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ class Acteur
    protected $temoinHDR;
    protected $temoinRapport;

    private $sourceInsertDate;

    /**
     * @return mixed
     */
@@ -30,14 +32,6 @@ class Acteur
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
@@ -46,14 +40,6 @@ class Acteur
        return $this->sourceId;
    }

    /**
     * @param mixed $sourceId
     */
    public function setSourceId($sourceId)
    {
        $this->sourceId = $sourceId;
    }

    /**
     * @return mixed
     */
@@ -62,14 +48,6 @@ class Acteur
        return $this->theseId;
    }

    /**
     * @param mixed $theseId
     */
    public function setTheseId($theseId)
    {
        $this->theseId = $theseId;
    }

    /**
     * @return mixed
     */
@@ -78,14 +56,6 @@ class Acteur
        return $this->roleId;
    }

    /**
     * @param mixed $roleId
     */
    public function setRoleId($roleId)
    {
        $this->roleId = $roleId;
    }

    /**
     * @return mixed
     */
@@ -94,14 +64,6 @@ class Acteur
        return $this->individuId;
    }

    /**
     * @param mixed $individuId
     */
    public function setIndividuId($individuId)
    {
        $this->individuId = $individuId;
    }

    /**
     * @return mixed
     */
@@ -111,17 +73,10 @@ class Acteur
    }

    /**
     * @param mixed $acteurEtablissementId
     * @return Acteur
     */
    public function setActeurEtablissementId($acteurEtablissementId)
    {
        $this->acteurEtablissementId = $acteurEtablissementId;

        return $this;
    }

    /**
     * return $this;
     * }
     *
     * /**
     * @return mixed
     */
    public function getCodeRoleJury()
@@ -129,14 +84,6 @@ class Acteur
        return $this->codeRoleJury;
    }

    /**
     * @param mixed $codeRoleJury
     */
    public function setCodeRoleJury($codeRoleJury)
    {
        $this->codeRoleJury = $codeRoleJury;
    }

    /**
     * @return mixed
     */
@@ -145,14 +92,6 @@ class Acteur
        return $this->libRoleJury;
    }

    /**
     * @param mixed $libRoleJury
     */
    public function setLibRoleJury($libRoleJury)
    {
        $this->libRoleJury = $libRoleJury;
    }

    /**
     * @return mixed
     */
@@ -161,14 +100,6 @@ class Acteur
        return $this->codeQualite;
    }

    /**
     * @param mixed $codeQualite
     */
    public function setCodeQualite($codeQualite)
    {
        $this->codeQualite = $codeQualite;
    }

    /**
     * @return mixed
     */
@@ -177,14 +108,6 @@ class Acteur
        return $this->libQualite;
    }

    /**
     * @param mixed $libQualite
     */
    public function setLibQualite($libQualite)
    {
        $this->libQualite = $libQualite;
    }

    /**
     * @return mixed
     */
@@ -193,14 +116,6 @@ class Acteur
        return $this->temoinHDR;
    }

    /**
     * @param mixed $temoinHDR
     */
    public function setTemoinHDR($temoinHDR)
    {
        $this->temoinHDR = $temoinHDR;
    }

    /**
     * @return mixed
     */
@@ -210,10 +125,10 @@ class Acteur
    }

    /**
     * @param mixed $temoinRapport
     * @return mixed
     */
    public function setTemoinRapport($temoinRapport)
    public function getSourceInsertDate()
    {
        $this->temoinRapport = $temoinRapport;
        return $this->sourceInsertDate;
    }
}
+8 −22
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ class Doctorant
    protected $sourceId;
    protected $individuId;

    private $sourceInsertDate;

    /**
     * @var string
     */
@@ -30,14 +32,6 @@ class Doctorant
        return $this->id;
    }

    /**
     * @param int $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
@@ -46,14 +40,6 @@ class Doctorant
        return $this->sourceId;
    }

    /**
     * @param mixed $sourceId
     */
    public function setSourceId($sourceId)
    {
        $this->sourceId = $sourceId;
    }

    /**
     * @return mixed
     */
@@ -63,18 +49,18 @@ class Doctorant
    }

    /**
     * @param mixed $individuId
     * @return string
     */
    public function setIndividuId($individuId)
    public function getIne()
    {
        $this->individuId = $individuId;
        return $this->ine;
    }

    /**
     * @return string
     * @return mixed
     */
    public function getIne()
    public function getSourceInsertDate()
    {
        return $this->ine;
        return $this->sourceInsertDate;
    }
}
+5 −19
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ class EcoleDoctorale
     */
    private $structureId;

    private $sourceInsertDate;

    /**
     * @return string
     */
@@ -32,14 +34,6 @@ class EcoleDoctorale
        return $this->id;
    }

    /**
     * @param string $id
     */
    public function setId(string $id)
    {
        $this->id = $id;
    }

    /**
     * @return string
     */
@@ -48,14 +42,6 @@ class EcoleDoctorale
        return $this->sourceId;
    }

    /**
     * @param string $sourceId
     */
    public function setSourceId(string $sourceId)
    {
        $this->sourceId = $sourceId;
    }

    /**
     * @return string
     */
@@ -65,10 +51,10 @@ class EcoleDoctorale
    }

    /**
     * @param string $structureId
     * @return mixed
     */
    public function setStructureId(string $structureId)
    public function getSourceInsertDate()
    {
        $this->structureId = $structureId;
        return $this->sourceInsertDate;
    }
}
+5 −27
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ class Etablissement
     */
    private $structureId;

    private $sourceInsertDate;

    /**
     * @var string
     */
@@ -37,14 +39,6 @@ class Etablissement
        return $this->id;
    }

    /**
     * @param string $id
     */
    public function setId(string $id)
    {
        $this->id = $id;
    }

    /**
     * @return string
     */
@@ -53,14 +47,6 @@ class Etablissement
        return $this->sourceId;
    }

    /**
     * @param string $sourceId
     */
    public function setSourceId(string $sourceId)
    {
        $this->sourceId = $sourceId;
    }

    /**
     * @return string
     */
@@ -69,14 +55,6 @@ class Etablissement
        return $this->structureId;
    }

    /**
     * @param string $structureId
     */
    public function setStructureId(string $structureId)
    {
        $this->structureId = $structureId;
    }

    /**
     * @return string
     */
@@ -86,10 +64,10 @@ class Etablissement
    }

    /**
     * @param string $code
     * @return mixed
     */
    public function setCode(string $code)
    public function getSourceInsertDate()
    {
        $this->code = $code;
        return $this->sourceInsertDate;
    }
}
Loading