Newscoop\Service\Implementation\ArticleTypeServiceDoctrine::create PHP Method

create() public method

Creates an article type
public create ( string $name ) : ArticleType
$name string the name of the new article type, not null
return Newscoop\Entity\ArticleType
    public function create($name)
    {
        $ret = $this->_create($name);
        $this->getManager()->flush();
        return $ret;
    }