ProductOptionValue::search PHP Method

    public function search()
    {
        // Warning: Please modify the following code to remove attributes that
        // should not be searched.
        $criteria = new CDbCriteria();
        $criteria->compare('product_option_value_id', $this->product_option_value_id);
        $criteria->compare('product_option_id', $this->product_option_id);
        $criteria->compare('product_id', $this->product_id);
        $criteria->compare('option_id', $this->option_id);
        $criteria->compare('option_value_id', $this->option_value_id);
        $criteria->compare('quantity', $this->quantity);
        $criteria->compare('subtract', $this->subtract);
        $criteria->compare('price', $this->price, true);
        $criteria->compare('price_prefix', $this->price_prefix, true);
        $criteria->compare('points', $this->points);
        $criteria->compare('points_prefix', $this->points_prefix, true);
        $criteria->compare('weight', $this->weight, true);
        $criteria->compare('weight_prefix', $this->weight_prefix, true);
        return new CActiveDataProvider($this, array('criteria' => $criteria));
    }