Example #1
0
 /**
  * @param Competency    $parent     The parent competency
  * @param boolean       $isImport   Whether we're in a framework import context
  */
 public function setParent(Competency $parent = null, $isImport = false)
 {
     $this->parent = $parent;
     if ($parent && $isImport) {
         // allow child to be persisted by cascade
         $parent->addChild($this);
     }
 }