title: Yii CGridView data is foreign key
body: <p>I'm having some hard time with CGridView, where one field is the foreign key to another table.</p>
  
  <p>There is a table called Person which contains an id_scholarity</p>
  
  <p>And a table Scholarity where id_scholarity is PK. I want to show the description of scholarity and not the id number.</p>
  
  <p>Gii has created the relations:</p>
  
  <p><strong>In Scholarity model:</strong></p>
  
  <pre><code>return array(
              'person' =&gt; array(self::HAS_MANY, 'PERSON', 'ID_SCHOLARITY'),
          );
  </code></pre>
  
  <p><strong>In Person Model</strong></p>
  
  <pre><code>return array(
      'id_scholarity' =&gt; array(self::BELONGS_TO, 'SCHOLARITY', 'ID_SCHOLARITY'),
  );
  </code></pre>
  
  <p>And finally my grid (in views/person/admin.php)</p>
  
  <pre><code>$this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'person-grid',
      'dataProvider'=&gt;$model-&gt;search(),
      'filter'=&gt;$model,
      'columns'=&gt;array(
  
          'NAME',
          array('name'=&gt;'ID_SCHOLARITY', 'value'=&gt;'$data-&gt;ID_SCHOLARITY-&gt;DESCRIPTION'),
  
          array(
              'class'=&gt;'CButtonColumn',
          ),
      ),
  )); 
  </code></pre>
  
  <p>The page just gets blank (by the way, how can I make yii show errors?). 
  What I'm doing wrong? </p>