$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; } $query->andFilterWhere([ 'id_customer' => $this->id_customer, 'id_customer_card' => $this->id_customer_card, 'id_user' => $this->id_user, 'id_partner_card' => $this->id_partner_card, 'id_proposer' => $this->id_proposer, 'sex' => $this->sex, 'date_stundent_card_expire' => $this->date_stundent_card_expire, 'birthdate' => $this->birthdate, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]); $query->andFilterWhere(['like', 'name', $this->name]) ->andFilterWhere(['like', 'email', $this->email]) ->andFilterWhere(['like', 'password', $this->password]) ->andFilterWhere(['like', 'phone', $this->phone]) ->andFilterWhere(['like', 'image', $this->image]) ->andFilterWhere(['like', 'description', $this->description]) ->andFilterWhere(['like', 'tax_number', $this->tax_number]) ->andFilterWhere(['like', 'country', $this->country]) ->andFilterWhere(['like', 'zip', $this->zip]) ->andFilterWhere(['like', 'city', $this->city]) ->andFilterWhere(['like', 'address', $this->address]); return $dataProvider; } }