public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('category_id, store_id', 'required'), array('category_id, store_id', 'numerical', 'integerOnly' => true), array('category_id, store_id', 'safe', 'on' => 'search'));
}