Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }