title: Dynamically add virtual field in cakephp
body: <p>I am using CakePHP 2.1.3; I want to create a virtual field dynamically in a controller. Is it possible?
  The problem is when I am trying to find max value in a table it gives me another array from the model array. Please ask if you need more information.</p>
  
  <p>When I am trying to execute the following query,</p>
  
  <pre><code>$find_max_case_count = $this-&gt;CaseMaster-&gt;find('first', array(
      'conditions' =&gt; array(
          'CaseMaster.CLIENT_ID' =&gt; $client_id,
          'CaseMaster.CASE_NO LIKE' =&gt; '%-%'
      ),
      'fields' =&gt; array('max(CaseMaster.CASE_NO) AS MAX_NO')
  ));
  </code></pre>
  
  <p>It is giving me an array like:</p>
  
  <pre><code>[0]=&gt; array([MAX_NO]=&gt; 52)
  </code></pre>
  
  <p>However I want it to be like as:</p>
  
  <pre><code>[CaseMaster] =&gt; array([MAX_NO] =&gt; 52)
  </code></pre>