Hello, basically my goal is to use CActiveDataProvider to get all items, but it is a bit complicated as each item I should search with different attribute value.
for example I have array of ids:
$ids = [1, 2, 3];
$items= new CActiveDataProvider('Item', array(
'criteria' => array(
'condition' => 'id=:id',
'params' => array(':id' => $ids),
),
'pagination' => array(
'pageSize' => 5,
),
));
is there any way to do it? as passing in array of $ids does not seem to work.