ArrayHelper dropdown

I’ve created a dropdown using arrayhelper but in the form the dropdown appears to be blank but if I select 1 it accepts it and displays the number.

Here’s the code


<?= $form->field($model, 'region_id')->dropDownList(ArrayHelper::map(Region::find()->asArray()->all(), 'id', 'region_name')) ?>

The dropdown appears to be blank

Image

I’ve already fixed it by removing the asArray


<?= $form->field($model, 'region_id')->dropDownList(ArrayHelper::map(Region::find()->all(), 'id', 'Region_Name')) ?>