|
|
@@ -0,0 +1,336 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+/**
|
|
|
+ * This file is auto-generated.
|
|
|
+ */
|
|
|
+
|
|
|
+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\Column]
|
|
|
+ private mixed $label;
|
|
|
+
|
|
|
+ #[ORM\Column(length: 255, options: ['nullable' => true])]
|
|
|
+ private string $description;
|
|
|
+
|
|
|
+ #[ORM\Column]
|
|
|
+ private mixed $educationTypeEnum;
|
|
|
+
|
|
|
+ #[ORM\Column(options: ['default' => false])]
|
|
|
+ private bool $isActive;
|
|
|
+
|
|
|
+ #[ORM\Column(options: ['default' => false])]
|
|
|
+ private bool $ielEnabled;
|
|
|
+
|
|
|
+ #[ORM\Column(length: 255, options: ['nullable' => true])]
|
|
|
+ private string $pedagogicObjectifs;
|
|
|
+
|
|
|
+ #[ORM\Column(length: 255, options: ['nullable' => true])]
|
|
|
+ private string $pedagogicContent;
|
|
|
+
|
|
|
+ #[ORM\Column(length: 255, options: ['nullable' => true])]
|
|
|
+ private string $accessCondition;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'date', options: ['nullable' => true])]
|
|
|
+ private ?DateTimeInterface $createDate;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'date', options: ['nullable' => true])]
|
|
|
+ private ?DateTimeInterface $updateDate;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'integer', options: ['nullable' => true])]
|
|
|
+ private int $legacyId;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'integer', options: ['nullable' => true])]
|
|
|
+ private int $createdBy;
|
|
|
+
|
|
|
+ #[ORM\Column(type: 'integer', options: ['nullable' => true])]
|
|
|
+ private int $updatedBy;
|
|
|
+
|
|
|
+ #[ORM\Column(options: ['default' => false])]
|
|
|
+ private bool $draft;
|
|
|
+
|
|
|
+ #[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 getLabel(): mixed
|
|
|
+ {
|
|
|
+ return $this->label;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setLabel(mixed $label): self
|
|
|
+ {
|
|
|
+ $this->label = $label;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getDescription(): string
|
|
|
+ {
|
|
|
+ return $this->description;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setDescription(string $description): self
|
|
|
+ {
|
|
|
+ $this->description = $description;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getEducationTypeEnum(): mixed
|
|
|
+ {
|
|
|
+ return $this->educationTypeEnum;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setEducationTypeEnum(mixed $educationTypeEnum): self
|
|
|
+ {
|
|
|
+ $this->educationTypeEnum = $educationTypeEnum;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getIsActive(): bool
|
|
|
+ {
|
|
|
+ return $this->isActive;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setIsActive(bool $isActive): self
|
|
|
+ {
|
|
|
+ $this->isActive = $isActive;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getIelEnabled(): bool
|
|
|
+ {
|
|
|
+ return $this->ielEnabled;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setIelEnabled(bool $ielEnabled): self
|
|
|
+ {
|
|
|
+ $this->ielEnabled = $ielEnabled;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getPedagogicObjectifs(): string
|
|
|
+ {
|
|
|
+ return $this->pedagogicObjectifs;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setPedagogicObjectifs(string $pedagogicObjectifs): self
|
|
|
+ {
|
|
|
+ $this->pedagogicObjectifs = $pedagogicObjectifs;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getPedagogicContent(): string
|
|
|
+ {
|
|
|
+ return $this->pedagogicContent;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setPedagogicContent(string $pedagogicContent): self
|
|
|
+ {
|
|
|
+ $this->pedagogicContent = $pedagogicContent;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAccessCondition(): string
|
|
|
+ {
|
|
|
+ return $this->accessCondition;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAccessCondition(string $accessCondition): self
|
|
|
+ {
|
|
|
+ $this->accessCondition = $accessCondition;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getCreateDate(): DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->createDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setCreateDate(DateTimeInterface $createDate): self
|
|
|
+ {
|
|
|
+ $this->createDate = $createDate;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getUpdateDate(): DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->updateDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setUpdateDate(DateTimeInterface $updateDate): self
|
|
|
+ {
|
|
|
+ $this->updateDate = $updateDate;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getLegacyId(): int
|
|
|
+ {
|
|
|
+ return $this->legacyId;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setLegacyId(int $legacyId): self
|
|
|
+ {
|
|
|
+ $this->legacyId = $legacyId;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getCreatedBy(): int
|
|
|
+ {
|
|
|
+ return $this->createdBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setCreatedBy(int $createdBy): self
|
|
|
+ {
|
|
|
+ $this->createdBy = $createdBy;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getUpdatedBy(): int
|
|
|
+ {
|
|
|
+ return $this->updatedBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setUpdatedBy(int $updatedBy): self
|
|
|
+ {
|
|
|
+ $this->updatedBy = $updatedBy;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getDraft(): bool
|
|
|
+ {
|
|
|
+ return $this->draft;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setDraft(bool $draft): self
|
|
|
+ {
|
|
|
+ $this->draft = $draft;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+}
|