$query, ]); $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; } // grid filtering conditions $query->andFilterWhere([ 'id' => $this->id, 'tool_id' => $this->tool_id, 'durable_date_in' => $this->durable_date_in, 'amount' => $this->amount, 'price' => $this->price, 'want_amount' => $this->want_amount, 'durable_date_use' => $this->durable_date_use, ]); $query->andFilterWhere(['like', 'durable_detail_add', $this->durable_detail_add]) ->andFilterWhere(['like', 'durable_method', $this->durable_method]) ->andFilterWhere(['like', 'durable_budget_type', $this->durable_budget_type]) ->andFilterWhere(['like', 'want', $this->want]) ->andFilterWhere(['like', 'durable_place', $this->durable_place]); return $dataProvider; } }