CycleByEducation.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Education;
  4. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use ApiPlatform\Metadata\ApiResource;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * TODO: (Non utilisé, à confirmer)
  9. */
  10. // #[Auditable]
  11. #[ApiResource(operations: [])]
  12. #[ORM\Entity]
  13. class CycleByEducation
  14. {
  15. #[ORM\Id]
  16. #[ORM\Column]
  17. #[ORM\GeneratedValue]
  18. private ?int $id = null;
  19. #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
  20. private ?Education $education = null;
  21. #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
  22. private ?Cycle $cycle = null;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getEducation(): ?Education
  28. {
  29. return $this->education;
  30. }
  31. public function setEducation(?Education $education): self
  32. {
  33. $this->education = $education;
  34. return $this;
  35. }
  36. public function getCycle(): ?Cycle
  37. {
  38. return $this->cycle;
  39. }
  40. public function setCycle(?Cycle $cycle): self
  41. {
  42. $this->cycle = $cycle;
  43. return $this;
  44. }
  45. }