false])] private bool $isSystem = false; #[ORM\OneToMany(mappedBy: 'cycle', targetEntity: CycleByEducation::class, orphanRemoval: true)] private Collection $cycleByEducations; public function __construct() { $this->cycleByEducations = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function setOrganization(?Organization $organization): self { $this->organization = $organization; return $this; } public function getOrganization(): Organization { return $this->organization; } public function setOrder(?int $order): self { $this->order = $order; return $this; } public function getOrder(): ?int { return $this->order; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getLabel(): string { return $this->label; } public function setCycleEnum(CycleEnum $cycleEnum): self { $this->cycleEnum = $cycleEnum; return $this; } public function getCycleEnum(): CycleEnum { return $this->cycleEnum; } public function setIsSystem(bool $isSystem): self { $this->isSystem = $isSystem; return $this; } public function getIsSystem(): bool { return $this->isSystem; } /** * @return Collection */ public function getCycleByEducations(): Collection { return $this->cycleByEducations; } public function addCycleByEducation(CycleByEducation $cycleByEducation): self { if (!$this->cycleByEducations->contains($cycleByEducation)) { $this->cycleByEducations[] = $cycleByEducation; $cycleByEducation->setCycle($this); } return $this; } public function removeCycleByEducation(CycleByEducation $cycleByEducation): self { if ($this->cycleByEducations->removeElement($cycleByEducation)) { // set the owning side to null (unless already changed) if ($cycleByEducation->getCycle() === $this) { $cycleByEducation->setCycle(null); } } return $this; } }