ImageToGallery::search PHP Méthode

    public function search()
    {
        // Warning: Please modify the following code to remove attributes that
        // should not be searched.
        $criteria = new CDbCriteria();
        $criteria->compare('id', $this->id, true);
        $criteria->compare('image_id', $this->image_id, true);
        $criteria->compare('gallery_id', $this->gallery_id, true);
        $criteria->compare('create_time', $this->create_time, true);
        return new CActiveDataProvider(get_class($this), ['criteria' => $criteria]);
    }