original_string: public function removeFromTree(EntityInterface $node)
      {
          return $this->_table->getConnection()->transactional(function () use ($node) {
              $this->_ensureFields($node);
  
              return $this->_removeFromTree($node);
          });
      }
code: public function removeFromTree(EntityInterface $node)
      {
          return $this->_table->getConnection()->transactional(function () use ($node) {
              $this->_ensureFields($node);
  
              return $this->_removeFromTree($node);
          });
      }
code_tokens: public function removeFromTree ( EntityInterface $ node ) { return $ this -> _table -> getConnection ( ) -> transactional ( function ( ) use ( $ node ) { $ this -> _ensureFields ( $ node ) ; return $ this -> _removeFromTree ( $ node ) ; } ) ; }
docstring: 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
docstring_tokens: Removes the current node from the tree by positioning it as a new root and re - parents all children up one level .