public function init() { parent::init(); $this->addField('name'); $this->addField('surname'); $this->addField('gender', ['enum' => ['M', 'F']]); }