Answer the question
In order to leave comments, you need to log in
How to filter by text if multiple values are specified (andFilterWhere->or->like)?
Several items are selected via select (array $this->product_name).
How to build andFilterWhere->or->like so that it works?? The one below doesn't work....
$this->product_name = [
1 => 'Имя 1',
2 => 'Имя 2',
3 => 'Имя 3',
];
$query->andFilterWhere([
'or', ['like', Products::tableName() . '.product_name', $this->product_name]
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question