Newscoop\Service\Implementation\ArticleTypeServiceDoctrine::createField PHP Метод

createField() публичный Метод

Creates a field
public createField ( string $name, ArticleType $type, array $props = null ) : ArticleTypeField
$name string the name of the article type field, not null
$type Newscoop\Entity\ArticleType
$props array properies of the field @see Newscoop\Entity\ArticleType
Результат Newscoop\Entity\ArticleTypeField
    public function createField($name, ArticleType $type, $props = null)
    {
        $ret = $this->createField($name, $type, $props);
        $this->getManager()->flush();
        return $ret;
    }