public function removeNodes($left, $right, $root=null)
    {
        $hasManyRoots = $this->getConfiguration()->hasManyRoots();

        $removed = array();
        foreach($this->wrappers as $oid => $wrapper)
        {
            if(!$hasManyRoots || ($wrapper->getRootValue() == $root))
            {
                if($wrapper->getLeftValue() >= $left && $wrapper->getRightValue() <= $right)
                {
                    $removed[$oid] = $wrapper;
                }
            }
        }

        foreach($removed as $key => $wrapper)
        {
            unset($this->wrappers[$key]);
            $wrapper->setLeftValue(0);
            $wrapper->setRightValue(0);
            if($hasManyRoots)
            {
                $wrapper->setRootValue(0);
            }
            $this->getEntityManager()->detach($wrapper->getNode());
        }
    }
public function removeNodes($left, $right, $root=null)
    {
        $hasManyRoots = $this->getConfiguration()->hasManyRoots();

        $removed = array();
        foreach($this->wrappers as $oid => $wrapper)
        {
            if(!$hasManyRoots || ($wrapper->getRootValue() == $root))
            {
                if($wrapper->getLeftValue() >= $left && $wrapper->getRightValue() <= $right)
                {
                    $removed[$oid] = $wrapper;
                }
            }
        }

        foreach($removed as $key => $wrapper)
        {
            unset($this->wrappers[$key]);
            $wrapper->setLeftValue(0);
            $wrapper->setRightValue(0);
            if($hasManyRoots)
            {
                $wrapper->setRootValue(0);
            }
            $this->getEntityManager()->detach($wrapper->getNode());
        }
    }
public function removeNodes ( $ left , $ right , $ root = null ) { $ hasManyRoots = $ this -> getConfiguration ( ) -> hasManyRoots ( ) ; $ removed = array ( ) ; foreach ( $ this -> wrappers as $ oid => $ wrapper ) { if ( ! $ hasManyRoots || ( $ wrapper -> getRootValue ( ) == $ root ) ) { if ( $ wrapper -> getLeftValue ( ) >= $ left && $ wrapper -> getRightValue ( ) <= $ right ) { $ removed [ $ oid ] = $ wrapper ; } } } foreach ( $ removed as $ key => $ wrapper ) { unset ( $ this -> wrappers [ $ key ] ) ; $ wrapper -> setLeftValue ( 0 ) ; $ wrapper -> setRightValue ( 0 ) ; if ( $ hasManyRoots ) { $ wrapper -> setRootValue ( 0 ) ; } $ this -> getEntityManager ( ) -> detach ( $ wrapper -> getNode ( ) ) ; } }
Internal
Removes managed nodes

@param int $left
@param int $right
@param mixed $root
Internal Removes managed nodes