예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }