ObjectResource::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('object_id', $this->object_id, true);
        $criteria->compare('resource_id', $this->resource_id, true);
        $criteria->compare('resource_order', $this->resource_order);
        $criteria->compare('description', $this->description, true);
        $criteria->compare('type', $this->type, true);
        return new CActiveDataProvider($this, array('criteria' => $criteria));
    }