public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('product_id, customer_group_id', 'required'), array('product_id, customer_group_id, priority', 'numerical', 'integerOnly' => true), array('price', 'length', 'max' => 15), array('date_start, date_end', 'safe'), array('product_special_id, product_id, customer_group_id, priority, price, date_start, date_end', 'safe', 'on' => 'search'));
}