src/Entity/SejourSessionEquipier.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SejourSessionEquipierRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=SejourSessionEquipierRepository::class)
  7. */
  8. class SejourSessionEquipier
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="sejourSessionEquipiers", fetch="EAGER",cascade={"persist"})
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $sejourSession;
  21. /**
  22. * @ORM\Column(type="string", length=255, nullable = true)
  23. */
  24. private $profession;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="sejourSessionEquipiers")
  27. */
  28. private $contact;
  29. /**
  30. * @ORM\ManyToOne(targetEntity=Metier::class, inversedBy="sejourSessionEquipiers")
  31. */
  32. private $metier;
  33. /**
  34. * @ORM\Column(type="integer", nullable=true)
  35. */
  36. private $legacyNbre;
  37. /**
  38. * @ORM\Column(type="integer", nullable=true)
  39. */
  40. private $legacyId;
  41. /**
  42. * @ORM\ManyToOne(targetEntity=EmployeeContract::class, inversedBy="sejourSessionEquipier")
  43. */
  44. private $employeeContract;
  45. /**
  46. * @ORM\Column(type="date", nullable= true)
  47. */
  48. private $dateDebut;
  49. /**
  50. * @ORM\Column(type="date", nullable= true)
  51. */
  52. private $dateFin;
  53. /**
  54. * @ORM\Column(type="boolean", nullable = true)
  55. */
  56. private $isExport;
  57. public function getId(): ?int
  58. {
  59. return $this->id;
  60. }
  61. public function getSejourSession(): ?SejourSession
  62. {
  63. return $this->sejourSession;
  64. }
  65. public function setSejourSession(?SejourSession $sejourSession): self
  66. {
  67. $this->sejourSession = $sejourSession;
  68. return $this;
  69. }
  70. public function getProfession(): ?string
  71. {
  72. return $this->profession;
  73. }
  74. public function setProfession(string $profession): self
  75. {
  76. $this->profession = $profession;
  77. return $this;
  78. }
  79. public function getContact(): ?Contact
  80. {
  81. return $this->contact;
  82. }
  83. public function setContact(?Contact $contact): self
  84. {
  85. $this->contact = $contact;
  86. return $this;
  87. }
  88. public function getMetier(): ?Metier
  89. {
  90. return $this->metier;
  91. }
  92. public function setMetier(?Metier $metier): self
  93. {
  94. $this->metier = $metier;
  95. return $this;
  96. }
  97. public function getLegacyNbre(): ?int
  98. {
  99. return $this->legacyNbre;
  100. }
  101. public function setLegacyNbre(?int $legacyNbre): self
  102. {
  103. $this->legacyNbre = $legacyNbre;
  104. return $this;
  105. }
  106. public function getLegacyId(): ?int
  107. {
  108. return $this->legacyId;
  109. }
  110. public function setLegacyId(?int $legacyId): self
  111. {
  112. $this->legacyId = $legacyId;
  113. return $this;
  114. }
  115. public function getEmployeeContract(): ?EmployeeContract
  116. {
  117. return $this->employeeContract;
  118. }
  119. public function setEmployeeContract(?EmployeeContract $employeeContract): self
  120. {
  121. $this->employeeContract = $employeeContract;
  122. return $this;
  123. }
  124. public function getDateDebut(): ?\DateTimeInterface
  125. {
  126. return $this->dateDebut;
  127. }
  128. public function setDateDebut(\DateTimeInterface $dateDebut): self
  129. {
  130. $this->dateDebut = $dateDebut;
  131. return $this;
  132. }
  133. public function getDateFin(): ?\DateTimeInterface
  134. {
  135. return $this->dateFin;
  136. }
  137. public function setDateFin(\DateTimeInterface $dateFin): self
  138. {
  139. $this->dateFin = $dateFin;
  140. return $this;
  141. }
  142. public function getIsExport(): ?bool
  143. {
  144. return $this->isExport;
  145. }
  146. public function setIsExport(bool $isActive): self
  147. {
  148. $this->isExport = $isActive;
  149. return $this;
  150. }
  151. }