Answer the question
In order to leave comments, you need to log in
How to use SQL IN operator in active records in yii?
How to use active records in yii to make a query like
"Select all records that have a number from the array (1,2,3) in the 'pole_1' field, and a number from the array (4,5,6) in the 'pole_2' field" ?
Answer the question
In order to leave comments, you need to log in
User::model()->findAllByAttributes(['pole_1' => [1,2,3], 'pole_2' => [4,5,6]]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question