public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('value', 'length', 'max' => 15), array('weight_class_id, value', 'safe', 'on' => 'search'));
}