Пример #1
0
 /**
  * Need to unset the nested set node after clone
  */
 public function __clone()
 {
     parent::__clone();
     if (!empty($this->id)) {
         $this->nestedSetNode = $this->left = $this->right = $this->level = null;
     }
 }