formForgeMappingEvents = new ArrayCollection(); } /** * @return Collection|FormForgeMappingEvent[] */ public function getFormForgeMappingEvents(): Collection { return $this->formForgeMappingEvents; } public function addFormForgeMappingEvent(FormForgeMappingEvent $formForgeMappingEvent): self { if (!$this->formForgeMappingEvents->contains($formForgeMappingEvent)) { $this->formForgeMappingEvents[] = $formForgeMappingEvent; $formForgeMappingEvent->setFormForgeReason($this); } return $this; } public function removeFormForgeMappingEvent(FormForgeMappingEvent $formForgeMappingEvent): self { if ($this->formForgeMappingEvents->contains($formForgeMappingEvent)) { $this->formForgeMappingEvents->removeElement($formForgeMappingEvent); // set the owning side to null (unless already changed) if ($formForgeMappingEvent->getFormForgeReason() === $this) { $formForgeMappingEvent->setFormForgeReason(null); } } return $this; } }