protected function move($id, $parentId, $left, $right)
    {
        $instance = $this->repository->find($id);

        $attributes = $instance->getAttributes();
        $attributes[$this->getLeftColumn($instance)] = $left;
        $attributes[$this->getRightColumn($instance)] = $right;
        $attributes[$this->getParentColumn($instance)] = $parentId;

        $instance->setRawAttributes($attributes);
        $instance->save();
    }
protected function move($id, $parentId, $left, $right)
    {
        $instance = $this->repository->find($id);

        $attributes = $instance->getAttributes();
        $attributes[$this->getLeftColumn($instance)] = $left;
        $attributes[$this->getRightColumn($instance)] = $right;
        $attributes[$this->getParentColumn($instance)] = $parentId;

        $instance->setRawAttributes($attributes);
        $instance->save();
    }
protected function move ( $ id , $ parentId , $ left , $ right ) { $ instance = $ this -> repository -> find ( $ id ) ; $ attributes = $ instance -> getAttributes ( ) ; $ attributes [ $ this -> getLeftColumn ( $ instance ) ] = $ left ; $ attributes [ $ this -> getRightColumn ( $ instance ) ] = $ right ; $ attributes [ $ this -> getParentColumn ( $ instance ) ] = $ parentId ; $ instance -> setRawAttributes ( $ attributes ) ; $ instance -> save ( ) ; }
Move tree node in nested-set tree type.

@param $id
@param $parentId
@param $left
@param $right
Move tree node in nested - set tree type .