$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_inventory_item' => $this->id_inventory_item, 'id_inventory' => $this->id_inventory, 'count_in' => $this->count_in, 'count_sold' => $this->count_sold, 'count' => $this->count, 'type' => $this->type, 'id_product' => $this->id_product, 'id_inventory_group' => $this->id_inventory_group, 'id_user' => $this->id_user, 'last_inventroy_at' => $this->last_inventroy_at, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]); return $dataProvider; } }