| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Education;
- // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
- use ApiPlatform\Metadata\ApiResource;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * TODO: (Non utilisé, à confirmer)
- */
- // #[Auditable]
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class CycleByEducation
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
- private ?Education $education = null;
- #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
- private ?Cycle $cycle = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getEducation(): ?Education
- {
- return $this->education;
- }
- public function setEducation(?Education $education): self
- {
- $this->education = $education;
- return $this;
- }
- public function getCycle(): ?Cycle
- {
- return $this->cycle;
- }
- public function setCycle(?Cycle $cycle): self
- {
- $this->cycle = $cycle;
- return $this;
- }
- }
|