$query->andFilterWhere(['=', 'email', $this->email]); // exact match $query->andFilterWhere(['like', 'username', $this->username]);