TeacherSchoolingHistory.php 857 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Person;
  4. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use ApiPlatform\Metadata\ApiResource;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Historique des enseignements donnés par une Person.
  9. */
  10. // #[Auditable]
  11. #[ApiResource(operations: [])]
  12. #[ORM\Entity]
  13. class TeacherSchoolingHistory
  14. {
  15. #[ORM\Id]
  16. #[ORM\Column]
  17. #[ORM\GeneratedValue]
  18. private ?int $id = null;
  19. #[ORM\ManyToOne(inversedBy: 'teacherSchoolingHistories')]
  20. #[ORM\JoinColumn(nullable: false)]
  21. private Person $person;
  22. public function getId(): ?int
  23. {
  24. return $this->id;
  25. }
  26. public function getPerson(): ?Person
  27. {
  28. return $this->person;
  29. }
  30. public function setPerson(?Person $person): self
  31. {
  32. $this->person = $person;
  33. return $this;
  34. }
  35. }