NestedSetsBehavior.php
public function makeRoot($runValidation = true, $attributes = null) {
        $this->operation = self::OPERATION_MAKE_ROOT;

        return $this->owner->save($runValidation, $attributes);
    }
public function makeRoot($runValidation = true, $attributes = null) {
        $this->operation = self::OPERATION_MAKE_ROOT;

        return $this->owner->save($runValidation, $attributes);
    }
public function makeRoot ( $ runValidation = true , $ attributes = null ) { $ this -> operation = self :: OPERATION_MAKE_ROOT ; return $ this -> owner -> save ( $ runValidation , $ attributes ) ; }
Creates the root node if the active record is new or moves it
as the root node.
@param boolean $runValidation
@param array $attributes
@return boolean
Creates the root node if the active record is new or moves it as the root node .