Multiple Related Models

My sql query:

        $model = Notificationsqueue::model()->findAll(array(



            'order'=>' ASC',



                    'with'=>array('user'=>array('select'=>'id, email'), 'forum'=>array('select'=>'url, id'))




Is it work, but i dont select the selected items.

$model->notification or $model->notification->user->email



Dear Friend

CActiveRecord::findAll brings an array of objects.

Check the following be helpful.

foreach($model as $queue)

  $queue->notification->user->email;//if notification HAS_ONE relationship with user.

Ohhhh. Thank you! :)

I tried this , but dont work. :(