main/core/Manager/HomeManager.php
public function renameType($type, $name)
    {
        $type->setName($name);
        $this->manager->persist($type);
        $this->manager->flush();

        return $type;
    }
public function renameType($type, $name)
    {
        $type->setName($name);
        $this->manager->persist($type);
        $this->manager->flush();

        return $type;
    }
public function renameType ( $ type , $ name ) { $ type -> setName ( $ name ) ; $ this -> manager -> persist ( $ type ) ; $ this -> manager -> flush ( ) ; return $ type ; }
Rename a type.

@param Type   $type
@param string $name

@return Type
Rename a type .