| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Person;
- // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
- use ApiPlatform\Metadata\ApiResource;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Historique des enseignements donnés par une Person.
- */
- // #[Auditable]
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class TeacherSchoolingHistory
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\ManyToOne(inversedBy: 'teacherSchoolingHistories')]
- #[ORM\JoinColumn(nullable: false)]
- private Person $person;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getPerson(): ?Person
- {
- return $this->person;
- }
- public function setPerson(?Person $person): self
- {
- $this->person = $person;
- return $this;
- }
- }
|