protected function insertNode($destLeft, $destRight, $destRoot=null)
    {
        $this->setLeftValue($destLeft);
        $this->setRightValue($destRight);
        if($this->hasManyRoots())
        {
            $this->setRootValue($destRoot);
        }
        $this->getManager()->getEntityManager()->persist($this->getNode());
    }
protected function insertNode($destLeft, $destRight, $destRoot=null)
    {
        $this->setLeftValue($destLeft);
        $this->setRightValue($destRight);
        if($this->hasManyRoots())
        {
            $this->setRootValue($destRoot);
        }
        $this->getManager()->getEntityManager()->persist($this->getNode());
    }
protected function insertNode ( $ destLeft , $ destRight , $ destRoot = null ) { $ this -> setLeftValue ( $ destLeft ) ; $ this -> setRightValue ( $ destRight ) ; if ( $ this -> hasManyRoots ( ) ) { $ this -> setRootValue ( $ destRoot ) ; } $ this -> getManager ( ) -> getEntityManager ( ) -> persist ( $ this -> getNode ( ) ) ; }
sets node's left and right values and persist's it

NOTE: This method does not wrap its database queries in a transaction.
This should be done before invoking this code.

@param int $destLeft
@param int $destRight
@param mixed $destRoot
sets node s left and right values and persist s it