'strip_tags'), // The following rule is used by search(). // Please remove those attributes that should not be searched. array('attribute_id, attribute_name, lang', 'safe', 'on'=>'search'), ); } /** * @return array relational rules. */ 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( 'participant_attribute_names'=>array(self::BELONGS_TO, 'ParticipantAttributeName', 'attribute_id') ); } }