function valuesFromForm(array &$values, ApiKey $record) { $record->setPerms($values['_perms']); $values['perms'] = $record->perms; }