Example #1
0
 /** {@inheritdoc} */
 public function beforeSave()
 {
     parent::beforeSave();
     if (empty($this->dataProvider->query->where)) {
         throw new BadRequestHttpException('Filtering condition are required');
     }
 }