/** * @param array $params */ public function setParams($params = []) { foreach ($params as $col => $value) { $this->query->andWhere(['like', $col, [$value]]); $this->countQuery->orWhere([$col => $value]); } }