I want write a Following Query in Active record .
SELECT * FROM `User` WHERE `UserId` IN ( 6, 7, 8, 9 ) ;
Thanks
You can put your array as a value for a specific attribute, like this (no tested):
$model=new User(); $result=$model->findAllByAttributes(array('UserId'=>array(6,7,8,9)));