title: No results found on related gridview
body: <pre><code>&lt;?php echo CHtml::beginForm('','post',array('id'=&gt;'base-si-received-item-form'));?&gt;&lt;?php 
  $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'base-si-received-item-grid',
      'dataProvider'=&gt;$searchModel-&gt;search(),
      //'filter'=&gt;$searchModel,
      'columns'=&gt;array(       
          array(
              'class'=&gt;'CCheckBoxColumn',
              'id'=&gt;'base-si-received-item-id',       
              'selectableRows'=&gt;2, // multiple rows can be selected       
          ),      
          array(
              'name' =&gt; 'details.stockno',
              'header'=&gt;'Stock No',
              'value' =&gt; '$data-&gt;details-&gt;stockno',
          ),
          array(
              'name' =&gt; 'details.details_description_search',
              'header'=&gt;'Description',
              'value' =&gt; '$data-&gt;details-&gt;details_description_search',
          ),
  </code></pre>
  
  <p>my model</p>
  
  <pre><code>public function relations() {
      // NOTE: you may need to adjust the relation name and the related
      // class name for the relations automatically generated below.      
      return array(
          'details' =&gt; array(self::BELONGS_TO, 'BaseRefSiDetails', 'details_id'),
      );
  }
  </code></pre>
  
  <p>i already tried a lot of approach but none of them works .. what i need is to show datas from a another model the relationship is already done with the help of gii generator but still no results found im stuck .</p>