Skip to content
Snippets Groups Projects
Commit 6856c74e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Cleaning

parent 4859b4ea
No related branches found
No related tags found
No related merge requests found
......@@ -46,25 +46,17 @@ class Agent implements
private ?string $sexe = null;
private ?DateTime $dateNaissance = null;
private ?string $login = null;
private ?string $harpId = null;
private ?string $email = null;
private ?string $tContratLong = null;
private Collection $affectations;
/** AgentAffectation[] */
private Collection $echelons;
/** AgentEchelon[] */
private Collection $grades;
/** AgentGrade[] */
private Collection $quotites;
/** AgentQuotite[] */
private Collection $statuts;
/** AgentStatut[] */
private Collection $validateurs;
private ?AbstractUser $utilisateur = null;
private Collection $fiches;
/** FichePoste[] */
private Collection $fichiers;
/** Fichier[] */
......@@ -78,7 +70,6 @@ class Agent implements
public function __construct()
{
$this->fiches = new ArrayCollection();
$this->statuts = new ArrayCollection();
$this->missionsSpecifiques = new ArrayCollection();
$this->fichiers = new ArrayCollection();
......@@ -91,18 +82,12 @@ class Agent implements
$this->validations = new ArrayCollection();
}
/**
* @return string
*/
public function generateTag(): string
{
return 'Agent_' . $this->getId();
}
/** Accesseur en lecteur de l'identification (importer de la base source) ********************/
/** Todo remettre un type une fois l'identifiant stabilisé (URN:string ? UCN: int) **/
public function getId()
public function getId(): ?string
{
return $this->id;
}
......@@ -147,17 +132,6 @@ class Agent implements
return $this->email;
}
public function getHarpId(): ?int
{
return $this->harpId;
}
public function isContratLong(): bool
{
return $this->tContratLong === 'O';
}
/** Collections importées *****************************************************************************************/
/** @return AgentAffectation[] */
......
......@@ -14,7 +14,6 @@
<field name="dateNaissance" column="date_naissance" type="datetime"/>
<field name="login" column="login" length="256"/>
<field name="email" column="email" length="1024"/>
<field name="tContratLong" column="T_CONTRAT_LONG" length="1" nullable="true"/>
<one-to-many target-entity="Agent\Entity\Db\AgentQuotite" mapped-by="agent" field="quotites"/>
<one-to-many target-entity="Agent\Entity\Db\AgentAffectation" mapped-by="agent" field="affectations"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment