title: Cakephp query for enum field in database
body: <p>I have a field in database. It's type is enum and it looks like</p>
  
  <pre><code>enum('NO ANSWER', 'ANSWERED', 'BUSY').
  </code></pre>
  
  <p>I need to put this values into dropdown. How can I write query in cakephp?
  I tried:</p>
  
  <pre><code>$result = TableRegistry::get('Calls')-&gt;find('list', ['valueField' =&gt; 'disposition'])-&gt;distinct('disposition')-&gt;toArray();
  </code></pre>
  
  <p>But it returns</p>
  
  <pre><code>[
  (int) 1 =&gt; null,
  (int) 77 =&gt; '',
  (int) 64 =&gt; 'NO ANSWER',
  (int) 65 =&gt; 'ANSWERED',
  (int) 72 =&gt; 'BUSY'
  ]
  </code></pre>
  
  <p>but I need something like this:</p>
  
  <pre><code>[
  (int) 1 =&gt; 'NO ANSWER',
  (int) 2 =&gt; 'ANSWERED',
  (int) 3 =&gt; 'BUSY'
  ]
  </code></pre>