SOLVED: CDbCriteria and array with PrimaryKeys

Hey there,

Is there a way to add an array of primaryKeys to a CDbCriteria ($criteria) ?

I know the function findAllByPk($criteria) will work, but if I use CPagination(sample::model()->count($criteria))

the page number is as excpected wrong.

Any ideas?

best regards,


Check CDbCriteria::AddInCondition, I think it suite for you.

Thank you, Exactly what I was looking for