/** * @inheritdoc */ public function removeCompetency(CompetencyInterface $competency) { if ($this->competencies->contains($competency)) { $this->competencies->removeElement($competency); $competency->removeAamcPcrs($this); } }
/** * @param CompetencyInterface $child */ public function addChild(CompetencyInterface $child) { if (!$this->children->contains($child)) { $this->children->add($child); } }