public function removeFromTree(EntityInterface $node)
    {
        return $this->_table->getConnection()->transactional(function () use ($node) {
            $this->_ensureFields($node);

            return $this->_removeFromTree($node);
        });
    }
public function removeFromTree(EntityInterface $node)
    {
        return $this->_table->getConnection()->transactional(function () use ($node) {
            $this->_ensureFields($node);

            return $this->_removeFromTree($node);
        });
    }
public function removeFromTree ( EntityInterface $ node ) { return $ this -> _table -> getConnection ( ) -> transactional ( function ( ) use ( $ node ) { $ this -> _ensureFields ( $ node ) ; return $ this -> _removeFromTree ( $ node ) ; } ) ; }
Removes the current node from the tree, by positioning it as a new root
and re-parents all children up one level.

Note that the node will not be deleted just moved away from its current position
without moving its children with it.

@param \Cake\Datasource\EntityInterface $node The node to remove from the tree
@return \Cake\Datasource\EntityInterface|false the node after being removed from the tree or
false on error
Removes the current node from the tree by positioning it as a new root and re - parents all children up one level .