findall array?

i need to do a custom findall lookup

findall needs to accept an objects params for the where clause.

something like findall($condition=‘where name=:params’, $params=array(:params=$parent_object->$object->_params);.

$parent_object->$object->_params=array(id=1, name='name),

parent_object->$object2->_params=array(id=2, name='name2),

obviously that doesnt work. so how would i accomplish this.

I don’t understand you actual need, but try with CDbCriteria - http://www.yiiframework.com/doc/guide/database.ar#reading-record