| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Education;
- // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Classe ... qui ...
- */
- // #[Auditable]
- #[ORM\Entity]
- class EducationComplement
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\OneToMany(mappedBy: 'educationComplement', targetEntity: Education::class, cascade: [], orphanRemoval: true)]
- protected Collection $educations;
- public function __construct()
- {
- $this->educations = new ArrayCollection();
- }
- public function getId(): ?int
- {
- return $this->id;
- }
- function getEducations(): Collection
- {
- return $this->educations;
- }
- function setEducations(Collection $educations): self
- {
- $this->educations = $educations;
- return $this;
- }
- }
|