So far everything works fine except for allowing it to accept null.
$this->crud->addField([ \'name\' => \'gender\',