title: ArrayHelper with labels for specific data from query
body: <p>I have the following code for a dropdown:</p>
  
  <pre><code>&lt;?=
      $form-&gt;field($model, 'type')
      -&gt;dropDownList(ArrayHelper::map(Category::find()-&gt;select('*')
      -&gt;distinct()-&gt;all(), 'type', 'type'))
  ?&gt;
  </code></pre>
  
  <p>Everything works the way I want it to work. Now the database values are coming out a different way then how I want them to. I want to be able to change the type value to something I choose, e.g.:</p>
  
  <pre><code>'computer' -&gt; 'Laptop'
  'projector' -&gt; 'Beamer'
  ...
  </code></pre>
  
  <p>Is there a way to get this done in <code>yii2</code>?</p>