How can I convert the result of Trips::model()->findAll() to an array?
Trips::model()->findAll()
You can create collections CMap continue to work with her
$collections = new CMap(); foreach (YourModel::model()->findAll(['index' => 'id']) as $key => $row) { $collections->add($key,$row->attributes); } var_dump($collections ->toArray());