title: how to get all the values in the "as" of each of the case statements in the cdb criteria of findAll in Yii?
body: <p>I have a query like e.g </p>
  
  <pre><code>    $criteria = new CDbCriteria();
      $criteria-&gt;select = array(
          'CASE
           when userid is not null then userid
          end
        as A',
          'CASE 
           when userid is not null then \'D\'
          end
        as H');
      $result = MyModel::model()-&gt;findAll($criteria);
  </code></pre>
  
  <p>when i foreach the $result, am getting objects in each of those results
  and I can only get the actual table column like e.g</p>
  
  <pre><code>$obj-&gt;USERID
  </code></pre>
  
  <p>I want to get the alias that i used in the select statement like e.g</p>
  
  <pre><code>$obj-&gt;A  OR $obj-&gt;H 
  </code></pre>
  
  <p>but if I do that, am getting an error, because A and H are not properties of the MyModel</p>
  
  <p>is it possible to get the "as" names as table columns from the result of the findAll?, if so, how?</p>