Yii CActiverecord methods findall, findAllByattributes always return object. if you want get the result as array. By you can get the dbcriteria use it in commanBuilder
$object = Message::model();
$object = $object ->getCommandBuilder()
->createFindCommand($object ->tableSchema, $object ->dbCriteria)
->queryAll();
print_r($object);