<?php
namespace App\Entity;
use App\Repository\SejourSessionEquipierRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SejourSessionEquipierRepository::class)
*/
class SejourSessionEquipier
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="sejourSessionEquipiers", fetch="EAGER",cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $sejourSession;
/**
* @ORM\Column(type="string", length=255, nullable = true)
*/
private $profession;
/**
* @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="sejourSessionEquipiers")
*/
private $contact;
/**
* @ORM\ManyToOne(targetEntity=Metier::class, inversedBy="sejourSessionEquipiers")
*/
private $metier;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $legacyNbre;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $legacyId;
/**
* @ORM\ManyToOne(targetEntity=EmployeeContract::class, inversedBy="sejourSessionEquipier")
*/
private $employeeContract;
/**
* @ORM\Column(type="date", nullable= true)
*/
private $dateDebut;
/**
* @ORM\Column(type="date", nullable= true)
*/
private $dateFin;
/**
* @ORM\Column(type="boolean", nullable = true)
*/
private $isExport;
public function getId(): ?int
{
return $this->id;
}
public function getSejourSession(): ?SejourSession
{
return $this->sejourSession;
}
public function setSejourSession(?SejourSession $sejourSession): self
{
$this->sejourSession = $sejourSession;
return $this;
}
public function getProfession(): ?string
{
return $this->profession;
}
public function setProfession(string $profession): self
{
$this->profession = $profession;
return $this;
}
public function getContact(): ?Contact
{
return $this->contact;
}
public function setContact(?Contact $contact): self
{
$this->contact = $contact;
return $this;
}
public function getMetier(): ?Metier
{
return $this->metier;
}
public function setMetier(?Metier $metier): self
{
$this->metier = $metier;
return $this;
}
public function getLegacyNbre(): ?int
{
return $this->legacyNbre;
}
public function setLegacyNbre(?int $legacyNbre): self
{
$this->legacyNbre = $legacyNbre;
return $this;
}
public function getLegacyId(): ?int
{
return $this->legacyId;
}
public function setLegacyId(?int $legacyId): self
{
$this->legacyId = $legacyId;
return $this;
}
public function getEmployeeContract(): ?EmployeeContract
{
return $this->employeeContract;
}
public function setEmployeeContract(?EmployeeContract $employeeContract): self
{
$this->employeeContract = $employeeContract;
return $this;
}
public function getDateDebut(): ?\DateTimeInterface
{
return $this->dateDebut;
}
public function setDateDebut(\DateTimeInterface $dateDebut): self
{
$this->dateDebut = $dateDebut;
return $this;
}
public function getDateFin(): ?\DateTimeInterface
{
return $this->dateFin;
}
public function setDateFin(\DateTimeInterface $dateFin): self
{
$this->dateFin = $dateFin;
return $this;
}
public function getIsExport(): ?bool
{
return $this->isExport;
}
public function setIsExport(bool $isActive): self
{
$this->isExport = $isActive;
return $this;
}
}