title: Yii Model with combined tables using relations in Active Record
body: <p>I've got the model class Contactindiv with relations and search as follows.</p>
  
  <pre><code>public function relations()
  {
      return array(
  
      'contactlogs' =&gt; array(self::HAS_MANY, 'Contactlog', 'ContactIndivID'),
  
      );
  
  }
  
  public function search()
  {
      $criteria=new CDbCriteria;
  
      $criteria-&gt;compare('ContactIndivID',$this-&gt;ContactIndivID);
      $criteria-&gt;compare('PersonalTitle',$this-&gt;PersonalTitle,true);
      $criteria-&gt;compare('NameLast',$this-&gt;NameLast,true);
      $criteria-&gt;compare('NameMiddle',$this-&gt;NameMiddle,true);
      $criteria-&gt;compare('NameFirst',$this-&gt;NameFirst,true);
  
      return new CActiveDataProvider($this, array(
          'criteria'=&gt;$criteria,
      ));
  }
  </code></pre>
  
  <p>The current page shows the data in a searchable CGridView format.</p>
  
  <p>My goal is to combine the 'contactlogs' from relations into the Model in order to have it show up on the page in a searchable fashion in the GridView.  Basically add a searchable GridView column for each contact showing their contact log.  </p>
  
  <p>Thanks ahead of time for your help!</p>