public function createField($name, ArticleType $type, $props = null) { $ret = $this->createField($name, $type, $props); $this->getManager()->flush(); return $ret; }