<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ProjetLettreMission
*/
#[ORM\Table(name: 'projet_lettre_mission')]
#[ORM\Index(name: 'edite_fk', columns: ['id_utilisateur'])]
#[ORM\Index(name: 'versionne_fk', columns: ['parent_id_projet_lm'])]
#[ORM\Index(name: 'fop_projet_fk', columns: ['id_fop'])]
#[ORM\Index(name: 'contenu_fk', columns: ['id_lm'])]
#[ORM\Index(name: 'statut_projet_lm_fk', columns: ['id_workflow'])]
#[ORM\UniqueConstraint(name: 'projet_lettre_mission_pk', columns: ['id_projet_lm'])]
#[ORM\Entity(repositoryClass: \App\Repository\ProjetLettreMissionRepository::class)]
class ProjetLettreMission
{
/**
* @var integer
*/
#[ORM\Column(name: 'id_projet_lm', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'SEQUENCE')]
#[ORM\SequenceGenerator(sequenceName: 'projet_lettre_mission_id_projet_lm_seq', allocationSize: 1, initialValue: 1)]
private $idProjetLm;
/**
* @var string
*/
#[ORM\Column(name: 'identifiant_plm', type: 'string', length: 100, nullable: false)]
private $identifiantPlm;
/**
* @var \DateTime
*/
#[ORM\Column(name: 'date_debut', type: 'date', nullable: false)]
private $dateDebut;
/**
* @var \DateTime
*/
#[ORM\Column(name: 'date_fin', type: 'date', nullable: true)]
private $dateFin;
/**
* @var string
*/
#[ORM\Column(name: 'contenu_encart', type: 'text', nullable: true)]
private $contenuEncart;
/**
* @var string
*/
#[ORM\Column(name: 'contenu_champ_libre', type: 'text', nullable: true)]
private $contenuChampLibre;
/**
* @var string
*/
#[ORM\Column(name: 'contenu_precision_dtn', type: 'text', nullable: true)]
private $contenuPrecisionDtn;
/**
* @var string
*/
#[ORM\Column(name: 'contenu_precision_sh', type: 'text', nullable: true)]
private $contenuPrecisionSH;
/**
* @var string
*/
#[ORM\Column(name: 'adresse_activite', type: 'text', nullable: true)]
private $adresse_Activite;
/**
* @var integer
*/
#[ORM\Column(name: 'ordre_de_mission_general', type: 'smallint', nullable: true)]
private $ordreDeMissionGeneral;
/**
* @var integer
*/
#[ORM\Column(name: 'localisation', type: 'smallint', nullable: true)]
private $localisation;
/**
* @var integer
*/
#[ORM\Column(name: 'fonctcomplementaire', type: 'smallint', nullable: true)]
private $fonctcomplementaire;
/**
* @var string
*/
#[ORM\Column(name: 'ordre_de_mission_specifique', type: 'text', nullable: true)]
private $ordreDeMissionSpecifique;
/**
* @var string
*/
#[ORM\Column(name: 'droit_cts', type: 'string', length: 1, nullable: false)]
private $droitCts;
/**
* @var integer
*/
#[ORM\Column(name: 'version', type: 'integer', nullable: false)]
private $version;
/**
* @var \DateTime
*/
#[ORM\Column(name: 'date', type: 'date', nullable: false)]
private $date;
/**
* @var integer
*/
#[ORM\Column(name: 'saison_sportive', type: 'integer', nullable: true)]
private $saisonSportive;
/**
* @var boolean
*/
#[ORM\Column(name: 'validation', type: 'boolean', nullable: true)]
private $validation;
#[ORM\JoinColumn(name: 'id_lm', referencedColumnName: 'id_lm')]
#[ORM\ManyToOne(targetEntity: 'LettreMission', inversedBy: 'plm', cascade: ['persist'])]
private ?\App\Entity\LettreMission $idLm = null;
#[ORM\JoinColumn(name: 'id_utilisateur', referencedColumnName: 'id_utilisateur')]
#[ORM\ManyToOne(targetEntity: 'Utilisateur')]
private ?\App\Entity\Utilisateur $idUtilisateur = null;
/**
* @var int
*/
#[ORM\Column(name: 'id_utilisateur', type: 'integer')]
private $utilisateur;
#[ORM\JoinColumn(name: 'id_fop', referencedColumnName: 'id_fop')]
#[ORM\ManyToOne(targetEntity: 'RefFop')]
private ?\App\Entity\RefFop $idFop = null;
#[ORM\JoinColumn(name: 'id_workflow', referencedColumnName: 'id_workflow')]
#[ORM\ManyToOne(targetEntity: 'Workflow', inversedBy: 'plm')]
private ?\App\Entity\Workflow $idWorkflow = null;
#[ORM\OneToMany(targetEntity: 'Mission', mappedBy: 'idProjetLm')]
#[ORM\JoinColumn(nullable: false)]
private ?\Doctrine\Common\Collections\Collection $mission = null;
#[ORM\OneToMany(targetEntity: 'PlmActiviteIndic', mappedBy: 'idProjetLm')]
#[ORM\JoinColumn(nullable: false)]
private ?\Doctrine\Common\Collections\Collection $plmActInd = null;
#[ORM\OneToMany(targetEntity: 'PlmIndicateurAutre', mappedBy: 'idProjetLm')]
#[ORM\JoinColumn(nullable: false)]
private ?\Doctrine\Common\Collections\Collection $plmIndAutre = null;
/**
* @var integer
*/
#[ORM\Column(name: 'parent_id_projet_lm', type: 'integer', nullable: true)]
private $idParentProjetLm;
#[ORM\JoinColumn(name: 'parent_id_projet_lm', referencedColumnName: 'id_projet_lm')]
#[ORM\ManyToOne(targetEntity: 'ProjetLettreMission')]
private ?\App\Entity\ProjetLettreMission $parentProjetLm = null;
#[ORM\OneToMany(targetEntity: 'PlmActiviteAutre', mappedBy: 'idProjetLm')]
#[ORM\JoinColumn(nullable: false)]
private ?\Doctrine\Common\Collections\Collection $plmActiviteAutre = null;
/*
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="RefActivite", mappedBy="idProjetLm")
*/
private \Doctrine\Common\Collections\ArrayCollection|array $idActivite;
#[ORM\JoinColumn(name: 'id_lieu', referencedColumnName: 'id_lieu')]
#[ORM\ManyToOne(targetEntity: 'RefLieu')]
private ?\App\Entity\RefLieu $lieu = null;
#[ORM\JoinColumn(name: 'id_discipline', referencedColumnName: 'id_discipline')]
#[ORM\ManyToOne(targetEntity: 'RefDiscipline')]
private ?\App\Entity\RefDiscipline $discipline = null;
/**
* Set setlieu
*
*
* @return ProjetLettreMission
*/
public function setlieu(\App\Entity\RefLieu $refLieu = null)
{
$this->lieu = $refLieu;
return $this;
}
/**
* Get getLieu
*
*
* @return \App\Entity\RefLieu
*/
public function getLieu()
{
return $this->lieu;
}
/**
* Set setDiscipline
*
*
* @return ProjetLettreMission
*/
public function setDiscipline(\App\Entity\RefDiscipline $refDiscipline = null)
{
$this->discipline = $refDiscipline;
return $this;
}
/**
* Get getDiscipline
*
* @return \App\Entity\RefDiscipline
*/
public function getDiscipline()
{
return $this->discipline;
}
/**
* Constructor
*/
public function __construct()
{
$this->idActivite = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get idProjetLm
*
* @return integer
*/
public function getIdProjetLm()
{
return $this->idProjetLm;
}
/**
* Set identifiantPlm
*
* @param string $identifiantPlm
*
* @return ProjetLettreMission
*/
public function setIdentifiantPlm($identifiantPlm)
{
$this->identifiantPlm = $identifiantPlm;
return $this;
}
/**
* Get identifiantPlm
*
* @return string
*/
public function getIdentifiantPlm()
{
return $this->identifiantPlm;
}
/**
* Set dateDebut
*
* @param \DateTime $dateDebut
*
* @return ProjetLettreMission
*/
public function setDateDebut($dateDebut)
{
$this->dateDebut = $dateDebut;
return $this;
}
/**
* Get dateDebut
*
* @return \DateTime
*/
public function getDateDebut()
{
return $this->dateDebut;
}
/**
* Set dateFin
*
* @param \DateTime $dateFin
*
* @return ProjetLettreMission
*/
public function setDateFin($dateFin)
{
$this->dateFin = $dateFin;
return $this;
}
/**
* Get dateFin
*
* @return \DateTime
*/
public function getDateFin()
{
return $this->dateFin;
}
/**
* Set contenuEncart
*
* @param string $contenuEncart
*
* @return ProjetLettreMission
*/
public function setContenuEncart($contenuEncart)
{
$this->contenuEncart = $contenuEncart;
return $this;
}
/**
* Get contenuEncart
*
* @return string
*/
public function getContenuEncart()
{
return $this->contenuEncart;
}
/**
* Set contenuChampLibre
*
* @param string $contenuChampLibre
*
* @return ProjetLettreMission
*/
public function setContenuChampLibre($contenuChampLibre)
{
$this->contenuChampLibre = $contenuChampLibre;
return $this;
}
/**
* Set contenuPrecisionDtn
*
* @param string $contenuPrecisionDtn
*
* @return ProjetLettreMission
*/
public function setContenuPrecisionDtn($contenuPrecisionDtn)
{
$this->contenuPrecisionDtn = $contenuPrecisionDtn;
return $this;
}
/**
* Set adresse_Activite
*
* @param string $adresse_Activite
*
* @return ProjetLettreMission
*/
public function setAdresseActivite($adresse_Activite)
{
$this->adresse_Activite = $adresse_Activite;
return $this;
}
/**
* Get adresse_Activite
*
* @return string
*/
public function getadresse_Activite()
{
return $this->adresse_Activite;
}
/**
* Set contenuPrecisionSH
*
* @param string $contenuPrecisionSH
*
* @return ProjetLettreMission
*/
public function setContenuPrecisionSH($contenuPrecisionSH)
{
$this->contenuPrecisionSH = $contenuPrecisionSH;
return $this;
}
/**
* Get contenuChampLibre
*
* @return string
*/
public function getContenuChampLibre()
{
return $this->contenuChampLibre;
}
/**
* Get contenuPrecisionDtn
*
* @return string
*/
public function getContenuPrecisionSH()
{
return $this->contenuPrecisionSH;
}
/**
* Get contenuPrecisionDtn
*
* @return string
*/
public function getContenuPrecisionDtn()
{
return $this->contenuPrecisionDtn;
}
/**
* Set ordreDeMissionGeneral
*
* @param integer $ordreDeMissionGeneral
*
* @return ProjetLettreMission
*/
public function setOrdreDeMissionGeneral($ordreDeMissionGeneral = null)
{
$this->ordreDeMissionGeneral = $ordreDeMissionGeneral;
return $this;
}
/**
* Get ordreDeMissionGeneral
*
* @return integer
*/
public function getOrdreDeMissionGeneral()
{
return $this->ordreDeMissionGeneral;
}
/**
* Set fonctcomplementaire
*
* @param integer $fonctcomplementaire
*
* @return ProjetLettreMission
*/
public function setFonctComplementaire($fonctcomplementaire = null)
{
$this->fonctcomplementaire = $fonctcomplementaire;
return $this;
}
/**
* Get fonctcomplementaire
*
* @return integer
*/
public function getFonctComplementaire()
{
return $this->fonctcomplementaire;
}
/**
* Set localisation
*
* @param integer $localisation
*
* @return ProjetLettreMission
*/
public function setLocalisation($localisation = null)
{
$this->localisation = $localisation;
return $this;
}
/**
* Get localisation
*
* @return integer
*/
public function getLocalisation()
{
return $this->localisation;
}
/**
* Set ordreDeMissionSpecifique
*
* @param string $ordreDeMissionSpecifique
*
* @return ProjetLettreMission
*/
public function setOrdreDeMissionSpecifique($ordreDeMissionSpecifique)
{
$this->ordreDeMissionSpecifique = $ordreDeMissionSpecifique;
return $this;
}
/**
* Get ordreDeMissionSpecifique
*
* @return string
*/
public function getOrdreDeMissionSpecifique()
{
return $this->ordreDeMissionSpecifique;
}
/**
* Set droitCts
*
* @param string $droitCts
*
* @return ProjetLettreMission
*/
public function setDroitCts($droitCts)
{
$this->droitCts = $droitCts;
return $this;
}
/**
* Get droitCts
*
* @return string
*/
public function getDroitCts()
{
return $this->droitCts;
}
/**
* Set version
*
* @param integer $version
*
* @return ProjetLettreMission
*/
public function setVersion($version)
{
$this->version = $version;
return $this;
}
/**
* Get version
*
* @return integer
*/
public function getVersion()
{
return $this->version;
}
/**
* Set date
*
* @param \DateTime $date
*
* @return ProjetLettreMission
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Get date
*
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* Set saisonSportive
*
* @param integer $saisonSportive
*
* @return ProjetLettreMission
*/
public function setSaisonSportive($saisonSportive)
{
$this->saisonSportive = $saisonSportive;
return $this;
}
/**
* Get saisonSportive
*
* @return integer
*/
public function getSaisonSportive()
{
return $this->saisonSportive;
}
/**
* Set validation
*
* @param boolean $validation
*
* @return ProjetLettreMission
*/
public function setValidation($validation)
{
$this->validation = $validation;
return $this;
}
/**
* Get validation
*
* @return boolean
*/
public function getValidation()
{
return $this->validation;
}
/**
* Set idLm
*
*
* @return ProjetLettreMission
*/
public function setIdLm(\App\Entity\LettreMission $idLm = null)
{
$this->idLm = $idLm;
return $this;
}
/**
* Get idLm
*
* @return \App\Entity\LettreMission
*/
public function getIdLm()
{
return $this->idLm;
}
/**
* Set idUtilisateur
*
*
* @return ProjetLettreMission
*/
public function setIdUtilisateur(\App\Entity\Utilisateur $idUtilisateur = null)
{
$this->idUtilisateur = $idUtilisateur;
return $this;
}
/**
* Get idUtilisateur
*
* @return \App\Entity\Utilisateur
*/
public function getIdUtilisateur()
{
return $this->idUtilisateur;
}
/**
* Set idFop
*
*
* @return ProjetLettreMission
*/
public function setIdFop(\App\Entity\RefFop $idFop = null)
{
$this->idFop = $idFop;
return $this;
}
/**
* Get idFop
*
* @return \App\Entity\RefFop
*/
public function getIdFop()
{
return $this->idFop;
}
/**
* Set idWorkflow
*
*
* @return ProjetLettreMission
*/
public function setIdWorkflow(\App\Entity\Workflow $idWorkflow = null)
{
$this->idWorkflow = $idWorkflow;
return $this;
}
/**
* Get idWorkflow
*
* @return \App\Entity\Workflow
*/
public function getIdWorkflow()
{
return $this->idWorkflow;
}
/**
* Set parentProjetLm
*
* @param integer
*
* @return ProjetLettreMission
*/
public function setIdParentProjetLm($idParentProjetLm = null)
{
$this->idParentProjetLm = $idParentProjetLm;
return $this;
}
/**
* Set parentProjetLm
*
*
* @return ProjetLettreMission
*/
public function setParentProjetLm(\App\Entity\ProjetLettreMission $parentProjetLm = null)
{
$this->parentProjetLm = $parentProjetLm;
return $this;
}
/**
* Get idParentProjetLm
*
* @return integer
*/
public function getIdParentProjetLm()
{
return $this->idParentProjetLm;
}
/**
* Get parentProjetLm
*
* @return \App\Entity\ProjetLettreMission
*/
public function getParentProjetLm()
{
return $this->parentProjetLm;
}
/**
* Add idActivite
*
*
* @return ProjetLettreMission
*/
public function addIdActivite(\App\Entity\RefActivite $idActivite)
{
$this->idActivite[] = $idActivite;
return $this;
}
/**
* Remove idActivite
*/
public function removeIdActivite(\App\Entity\RefActivite $idActivite)
{
$this->idActivite->removeElement($idActivite);
}
/**
* Get idActivite
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdActivite()
{
return $this->idActivite;
}
/**
* Add mission
*
*
* @return ProjetLettreMission
*/
public function addMission(\App\Entity\Mission $mission)
{
$this->mission[] = $mission;
return $this;
}
/**
* Remove mission
*/
public function removeMission(\App\Entity\Mission $mission)
{
$this->mission->removeElement($mission);
}
/**
* Get mission
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMission()
{
return $this->mission;
}
/**
* Add plmActInd
*
*
* @return ProjetLettreMission
*/
public function addPlmActInd(\App\Entity\PlmActiviteIndic $plmActInd)
{
$this->plmActInd[] = $plmActInd;
return $this;
}
/**
* Remove plmActInd
*/
public function removePlmActInd(\App\Entity\PlmActiviteIndic $plmActInd)
{
$this->plmActInd->removeElement($plmActInd);
}
/**
* Get plmActInd
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPlmActInd()
{
return $this->plmActInd;
}
/**
* Add plmIndAutre
*
*
* @return ProjetLettreMission
*/
public function addPlmIndAutre(\App\Entity\PlmIndicateurAutre $plmIndAutre)
{
$this->plmIndAutre[] = $plmIndAutre;
return $this;
}
/**
* Remove plmIndAutre
*/
public function removePlmIndAutre(\App\Entity\PlmIndicateurAutre $plmIndAutre)
{
$this->plmIndAutre->removeElement($plmIndAutre);
}
/**
* Get plmIndAutre
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPlmIndAutre()
{
return $this->plmIndAutre;
}
/**
* Add plmActiviteAutre
*
*
* @return ProjetLettreMission
*/
public function addPlmActiviteAutre(\App\Entity\PlmActiviteAutre $plmActiviteAutre)
{
$this->plmActiviteAutre[] = $plmActiviteAutre;
return $this;
}
/**
* Remove plmActiviteAutre
*/
public function removePlmActiviteAutre(\App\Entity\PlmActiviteAutre $plmActiviteAutre)
{
$this->plmActiviteAutre->removeElement($plmActiviteAutre);
}
/**
* Get plmActiviteAutre
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPlmActiviteAutre()
{
return $this->plmActiviteAutre;
}
}