/** * Add Child * * @param Admin\Entity\MasterSystem $child * @return MasterSystem */ public function addChild(\Admin\Entity\MasterSystem $child) { $child->setParent($this); // synchronously updating inverse side $this->children[] = $child; return $this; }
/** * Add system * * @param Admin\Entity\MasterSystem $system * @return Project */ public function addSystem(\Admin\Entity\MasterSystem $system) { $system->addProject($this); // synchronously updating inverse side $this->systems[] = $system; return $this; }