public function search() {
$criteria = new CDbCriteria;
$criteria->compare('address1', $this->residence_id);
$criteria->with=array('residence'=>array('select'=>'address1'));
return new CActiveDataProvider(get_class($this), array(
'criteria' => $criteria,
));
}
In the residence the address1 is in the safe list.
But I cannot use the ajax filter on the header to enter values from the address1 field.
How can I implement so search should use that foreign relation field on the search?