title: Yii get Model relation in CGridView
body: <p>i have grid view like this</p>
  
  <pre><code> &lt;?php $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'ingredient-grid',
      'dataProvider'=&gt;$model-&gt;search(),
      'filter'=&gt;$model,
      'columns'=&gt;array(
          //'id',
          'barcode',
          'ingredient',
          'pantry',
          'catid',
          array(
              'class'=&gt;'CButtonColumn',
          ),
      ),
  )); ?&gt;
  </code></pre>
  
  <p>i want to print last relation of my model</p>
  
  <pre><code>  return array(
          'cat' =&gt; array(self::BELONGS_TO, 'Categories', 'catid'),
          'memberingredients' =&gt; array(self::HAS_MANY, 'Memberingredients', 'ingredient_id'),
          'recipeingredients' =&gt; array(self::HAS_MANY, 'Recipeingredients', 'ingredient_id'),
          'ingredientmeasurement'=&gt;array(self::HAS_MANY, 'IngredientMeasurement','ing_id'),
      );
  </code></pre>
  
  <p>how i print last relation of ingredientmeasurement in grid view , Note relation contain HAS_MANY </p>