Loading module/Application/src/Service/TableService.php +12 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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); } Loading module/ImportData/src/V1/Entity/Db/Acteur.php +9 −94 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ class Acteur protected $temoinHDR; protected $temoinRapport; private $sourceInsertDate; /** * @return mixed */ Loading @@ -30,14 +32,6 @@ class Acteur return $this->id; } /** * @param mixed $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ Loading @@ -46,14 +40,6 @@ class Acteur return $this->sourceId; } /** * @param mixed $sourceId */ public function setSourceId($sourceId) { $this->sourceId = $sourceId; } /** * @return mixed */ Loading @@ -62,14 +48,6 @@ class Acteur return $this->theseId; } /** * @param mixed $theseId */ public function setTheseId($theseId) { $this->theseId = $theseId; } /** * @return mixed */ Loading @@ -78,14 +56,6 @@ class Acteur return $this->roleId; } /** * @param mixed $roleId */ public function setRoleId($roleId) { $this->roleId = $roleId; } /** * @return mixed */ Loading @@ -94,14 +64,6 @@ class Acteur return $this->individuId; } /** * @param mixed $individuId */ public function setIndividuId($individuId) { $this->individuId = $individuId; } /** * @return mixed */ Loading @@ -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() Loading @@ -129,14 +84,6 @@ class Acteur return $this->codeRoleJury; } /** * @param mixed $codeRoleJury */ public function setCodeRoleJury($codeRoleJury) { $this->codeRoleJury = $codeRoleJury; } /** * @return mixed */ Loading @@ -145,14 +92,6 @@ class Acteur return $this->libRoleJury; } /** * @param mixed $libRoleJury */ public function setLibRoleJury($libRoleJury) { $this->libRoleJury = $libRoleJury; } /** * @return mixed */ Loading @@ -161,14 +100,6 @@ class Acteur return $this->codeQualite; } /** * @param mixed $codeQualite */ public function setCodeQualite($codeQualite) { $this->codeQualite = $codeQualite; } /** * @return mixed */ Loading @@ -177,14 +108,6 @@ class Acteur return $this->libQualite; } /** * @param mixed $libQualite */ public function setLibQualite($libQualite) { $this->libQualite = $libQualite; } /** * @return mixed */ Loading @@ -193,14 +116,6 @@ class Acteur return $this->temoinHDR; } /** * @param mixed $temoinHDR */ public function setTemoinHDR($temoinHDR) { $this->temoinHDR = $temoinHDR; } /** * @return mixed */ Loading @@ -210,10 +125,10 @@ class Acteur } /** * @param mixed $temoinRapport * @return mixed */ public function setTemoinRapport($temoinRapport) public function getSourceInsertDate() { $this->temoinRapport = $temoinRapport; return $this->sourceInsertDate; } } module/ImportData/src/V1/Entity/Db/Doctorant.php +8 −22 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ class Doctorant protected $sourceId; protected $individuId; private $sourceInsertDate; /** * @var string */ Loading @@ -30,14 +32,6 @@ class Doctorant return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ Loading @@ -46,14 +40,6 @@ class Doctorant return $this->sourceId; } /** * @param mixed $sourceId */ public function setSourceId($sourceId) { $this->sourceId = $sourceId; } /** * @return mixed */ Loading @@ -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; } } module/ImportData/src/V1/Entity/Db/EcoleDoctorale.php +5 −19 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ class EcoleDoctorale */ private $structureId; private $sourceInsertDate; /** * @return string */ Loading @@ -32,14 +34,6 @@ class EcoleDoctorale return $this->id; } /** * @param string $id */ public function setId(string $id) { $this->id = $id; } /** * @return string */ Loading @@ -48,14 +42,6 @@ class EcoleDoctorale return $this->sourceId; } /** * @param string $sourceId */ public function setSourceId(string $sourceId) { $this->sourceId = $sourceId; } /** * @return string */ Loading @@ -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; } } module/ImportData/src/V1/Entity/Db/Etablissement.php +5 −27 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ class Etablissement */ private $structureId; private $sourceInsertDate; /** * @var string */ Loading @@ -37,14 +39,6 @@ class Etablissement return $this->id; } /** * @param string $id */ public function setId(string $id) { $this->id = $id; } /** * @return string */ Loading @@ -53,14 +47,6 @@ class Etablissement return $this->sourceId; } /** * @param string $sourceId */ public function setSourceId(string $sourceId) { $this->sourceId = $sourceId; } /** * @return string */ Loading @@ -69,14 +55,6 @@ class Etablissement return $this->structureId; } /** * @param string $structureId */ public function setStructureId(string $structureId) { $this->structureId = $structureId; } /** * @return string */ Loading @@ -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
module/Application/src/Service/TableService.php +12 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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); } Loading
module/ImportData/src/V1/Entity/Db/Acteur.php +9 −94 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ class Acteur protected $temoinHDR; protected $temoinRapport; private $sourceInsertDate; /** * @return mixed */ Loading @@ -30,14 +32,6 @@ class Acteur return $this->id; } /** * @param mixed $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ Loading @@ -46,14 +40,6 @@ class Acteur return $this->sourceId; } /** * @param mixed $sourceId */ public function setSourceId($sourceId) { $this->sourceId = $sourceId; } /** * @return mixed */ Loading @@ -62,14 +48,6 @@ class Acteur return $this->theseId; } /** * @param mixed $theseId */ public function setTheseId($theseId) { $this->theseId = $theseId; } /** * @return mixed */ Loading @@ -78,14 +56,6 @@ class Acteur return $this->roleId; } /** * @param mixed $roleId */ public function setRoleId($roleId) { $this->roleId = $roleId; } /** * @return mixed */ Loading @@ -94,14 +64,6 @@ class Acteur return $this->individuId; } /** * @param mixed $individuId */ public function setIndividuId($individuId) { $this->individuId = $individuId; } /** * @return mixed */ Loading @@ -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() Loading @@ -129,14 +84,6 @@ class Acteur return $this->codeRoleJury; } /** * @param mixed $codeRoleJury */ public function setCodeRoleJury($codeRoleJury) { $this->codeRoleJury = $codeRoleJury; } /** * @return mixed */ Loading @@ -145,14 +92,6 @@ class Acteur return $this->libRoleJury; } /** * @param mixed $libRoleJury */ public function setLibRoleJury($libRoleJury) { $this->libRoleJury = $libRoleJury; } /** * @return mixed */ Loading @@ -161,14 +100,6 @@ class Acteur return $this->codeQualite; } /** * @param mixed $codeQualite */ public function setCodeQualite($codeQualite) { $this->codeQualite = $codeQualite; } /** * @return mixed */ Loading @@ -177,14 +108,6 @@ class Acteur return $this->libQualite; } /** * @param mixed $libQualite */ public function setLibQualite($libQualite) { $this->libQualite = $libQualite; } /** * @return mixed */ Loading @@ -193,14 +116,6 @@ class Acteur return $this->temoinHDR; } /** * @param mixed $temoinHDR */ public function setTemoinHDR($temoinHDR) { $this->temoinHDR = $temoinHDR; } /** * @return mixed */ Loading @@ -210,10 +125,10 @@ class Acteur } /** * @param mixed $temoinRapport * @return mixed */ public function setTemoinRapport($temoinRapport) public function getSourceInsertDate() { $this->temoinRapport = $temoinRapport; return $this->sourceInsertDate; } }
module/ImportData/src/V1/Entity/Db/Doctorant.php +8 −22 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ class Doctorant protected $sourceId; protected $individuId; private $sourceInsertDate; /** * @var string */ Loading @@ -30,14 +32,6 @@ class Doctorant return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ Loading @@ -46,14 +40,6 @@ class Doctorant return $this->sourceId; } /** * @param mixed $sourceId */ public function setSourceId($sourceId) { $this->sourceId = $sourceId; } /** * @return mixed */ Loading @@ -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; } }
module/ImportData/src/V1/Entity/Db/EcoleDoctorale.php +5 −19 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ class EcoleDoctorale */ private $structureId; private $sourceInsertDate; /** * @return string */ Loading @@ -32,14 +34,6 @@ class EcoleDoctorale return $this->id; } /** * @param string $id */ public function setId(string $id) { $this->id = $id; } /** * @return string */ Loading @@ -48,14 +42,6 @@ class EcoleDoctorale return $this->sourceId; } /** * @param string $sourceId */ public function setSourceId(string $sourceId) { $this->sourceId = $sourceId; } /** * @return string */ Loading @@ -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; } }
module/ImportData/src/V1/Entity/Db/Etablissement.php +5 −27 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ class Etablissement */ private $structureId; private $sourceInsertDate; /** * @var string */ Loading @@ -37,14 +39,6 @@ class Etablissement return $this->id; } /** * @param string $id */ public function setId(string $id) { $this->id = $id; } /** * @return string */ Loading @@ -53,14 +47,6 @@ class Etablissement return $this->sourceId; } /** * @param string $sourceId */ public function setSourceId(string $sourceId) { $this->sourceId = $sourceId; } /** * @return string */ Loading @@ -69,14 +55,6 @@ class Etablissement return $this->structureId; } /** * @param string $structureId */ public function setStructureId(string $structureId) { $this->structureId = $structureId; } /** * @return string */ Loading @@ -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; } }