findallbyattributes with or condition

How write findallbyattributes with ‘or’ condition?

findAllByAttributes(array('id'=>'1'),array('condition'=>'task_id'=='3' OR 'task_id'=='43' OR 'task_id'=='44'))

is this work?

Why not use CDBCriteria?

i dnt get what u r meaning !

How we write a mixedcondition in findByAttributes?

This is worked

Model::model()->findAll('id=:t4 AND id=:t1 OR id=:t2 OR id=:t3', array(':t1'=>3,':t2'=>43,':t3'=>44,':t4'=>1));

Check this

Hopefully, will help you

Thank u.