public function init() { parent::init(); $this->addField('type', ['enum' => ['client', 'supplier']]); $this->addField('name'); }