EducationComplement.php 988 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Education;
  4. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * Classe ... qui ...
  10. */
  11. // #[Auditable]
  12. #[ORM\Entity]
  13. class EducationComplement
  14. {
  15. #[ORM\Id]
  16. #[ORM\Column]
  17. #[ORM\GeneratedValue]
  18. private ?int $id = null;
  19. #[ORM\OneToMany(mappedBy: 'educationComplement', targetEntity: Education::class, cascade: [], orphanRemoval: true)]
  20. protected Collection $educations;
  21. public function __construct()
  22. {
  23. $this->educations = new ArrayCollection();
  24. }
  25. public function getId(): ?int
  26. {
  27. return $this->id;
  28. }
  29. function getEducations(): Collection
  30. {
  31. return $this->educations;
  32. }
  33. function setEducations(Collection $educations): self
  34. {
  35. $this->educations = $educations;
  36. return $this;
  37. }
  38. }