| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Education;
- use ApiPlatform\Metadata\ApiResource;
- use App;
- use App\Entity\Core\Tagg;
- use App\Entity\Organization\Organization;
- use App\Entity\Product\Intangible;
- use DateTimeInterface;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class EducationCurriculumPack
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private int $id;
- #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'educationCurriculumPacks')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
- public App\Entity\Organization\Organization $organization;
- #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'educationCurriculumPacks', cascade: ['persist'], orphanRemoval: false)]
- public Collection $tags;
- #[ORM\ManyToMany(
- targetEntity: EducationCurriculum::class,
- inversedBy: 'requiredEducationCurriculumPacks',
- cascade: [],
- orphanRemoval: false,
- )]
- public Collection $requiredEducationCurriculums;
- #[ORM\ManyToMany(
- targetEntity: EducationCurriculum::class,
- inversedBy: 'requiredChoicesEducationCurriculumPacks',
- cascade: [],
- orphanRemoval: false,
- )]
- public Collection $requiredChoicesEducationCurriculums;
- #[ORM\ManyToMany(
- targetEntity: EducationCurriculum::class,
- inversedBy: 'optionnalEducationCurriculumPacks',
- cascade: [],
- orphanRemoval: false,
- )]
- public Collection $optionnalEducationCurriculums;
- #[ORM\ManyToMany(targetEntity: Intangible::class, mappedBy: 'educationCurriculumPacks', cascade: [], orphanRemoval: false)]
- public Collection $intangibles;
- function getId(): int
- {
- return $this->id;
- }
- function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- function getOrganization(): App\Entity\Organization\Organization
- {
- return $this->organization;
- }
- function setOrganization(App\Entity\Organization\Organization $organization): self
- {
- $this->organization = $organization;
- return $this;
- }
- function getTags(): Collection
- {
- return $this->tags;
- }
- function setTags(Collection $tags): self
- {
- $this->tags = $tags;
- return $this;
- }
- function getRequiredEducationCurriculums(): Collection
- {
- return $this->requiredEducationCurriculums;
- }
- function setRequiredEducationCurriculums(Collection $requiredEducationCurriculums): self
- {
- $this->requiredEducationCurriculums = $requiredEducationCurriculums;
- return $this;
- }
- function getRequiredChoicesEducationCurriculums(): Collection
- {
- return $this->requiredChoicesEducationCurriculums;
- }
- function setRequiredChoicesEducationCurriculums(Collection $requiredChoicesEducationCurriculums): self
- {
- $this->requiredChoicesEducationCurriculums = $requiredChoicesEducationCurriculums;
- return $this;
- }
- function getOptionnalEducationCurriculums(): Collection
- {
- return $this->optionnalEducationCurriculums;
- }
- function setOptionnalEducationCurriculums(Collection $optionnalEducationCurriculums): self
- {
- $this->optionnalEducationCurriculums = $optionnalEducationCurriculums;
- return $this;
- }
- function getIntangibles(): Collection
- {
- return $this->intangibles;
- }
- function setIntangibles(Collection $intangibles): self
- {
- $this->intangibles = $intangibles;
- return $this;
- }
- }
|