main/core/Manager/HomeManager.php
public function createType($name)
    {
        $type = new Type($name);
        $this->manager->persist($type);
        $this->manager->flush();

        return $type;
    }
public function createType($name)
    {
        $type = new Type($name);
        $this->manager->persist($type);
        $this->manager->flush();

        return $type;
    }
public function createType ( $ name ) { $ type = new Type ( $ name ) ; $ this -> manager -> persist ( $ type ) ; $ this -> manager -> flush ( ) ; return $ type ; }
Create a type.

@param string $name

@return Type
Create a type .