showErrorSummary and CForm with nested forms

Based on this discussion which I encountered myself:

I am also having trouble with using one single error summary with CForm with nested forms.

Having separate error summaries for each nested form worked but seems ugly because a summary form breaks the form in the middle

I have tried creating a single error summary if you go through the more classical approach, instead of using CForm, and this code below worked perfectly creating a single


print $form->errorSummary($models);	//yes this can indeed be an array of models (since in this form we have multiple models) 


Is there a missing element inside Yii or am I using it wrong?

Note: I am using version Yii 1.1.8