main/core/Manager/ResourceManager.php
public function rename(ResourceNode $node, $name, $noFlush = false)
    {
        $node->setName($name);
        $name = $this->getUniqueName($node, $node->getParent());
        $node->setName($name);
        $this->om->persist($node);
        $this->logChangeSet($node);

        if (!$noFlush) {
            $this->om->flush();
        }

        return $node;
    }
public function rename(ResourceNode $node, $name, $noFlush = false)
    {
        $node->setName($name);
        $name = $this->getUniqueName($node, $node->getParent());
        $node->setName($name);
        $this->om->persist($node);
        $this->logChangeSet($node);

        if (!$noFlush) {
            $this->om->flush();
        }

        return $node;
    }
public function rename ( ResourceNode $ node , $ name , $ noFlush = false ) { $ node -> setName ( $ name ) ; $ name = $ this -> getUniqueName ( $ node , $ node -> getParent ( ) ) ; $ node -> setName ( $ name ) ; $ this -> om -> persist ( $ node ) ; $ this -> logChangeSet ( $ node ) ; if ( ! $ noFlush ) { $ this -> om -> flush ( ) ; } return $ node ; }
Renames a node.

@param ResourceNode $node
@param string       $name
@param bool         $noFlush

@return ResourceNode

@deprecated
Renames a node .