Cgridview And Many Many Relation

I cant display records of many many relation in cgridview.

whats wrong with my code?


CVarDumper::dump($model->precos);

$this->widget('zii.widgets.grid.CGridView', array(

    'id' => 'preco-grid',

    'dataProvider' => $model->search(),

    'filter' => $model,

    'columns' => array(

        array(// this is for your related group members of the current group

            'name' => 'precos.zona_id', // this will access the attributeLabel from the member model class, and assign it to your column header

            'value' => '$data->precos->zona_id', // this will access the current group's 1st member and give out the firstname of that member

            'type' => 'raw' // this tells that the value type is raw and no formatting is to be applied to it

        ),

        array(// this is for your related group members of the current group

            'name' => 'precos.tabuleiro_id', // this will access the attributeLabel from the member model class, and assign it to your column header

            'value' => '$data->precos->tabuleiro_id', // this will access the current group's 1st member and give out the firstname of that member

            'type' => 'raw' // this tells that the value type is raw and no formatting is to be applied to it

        ),

        array(// this is for your related group members of the current group

            'name' => 'precos.menor_igual_um', // this will access the attributeLabel from the member model class, and assign it to your column header

            'value' => '$data->precos->menor_igual_um', // this will access the current group's 1st member and give out the firstname of that member

            'type' => 'raw' // this tells that the value type is raw and no formatting is to be applied to it

        ),

        array(// this is for your related group members of the current group

            'name' => 'precos.entre_dois_cinco', // this will access the attributeLabel from the member model class, and assign it to your column header

            'value' => '$data->precos->entre_dois_cinco', // this will access the current group's 1st member and give out the firstname of that member

            'type' => 'raw' // this tells that the value type is raw and no formatting is to be applied to it

        ),

        array(// this is for your related group members of the current group

            'name' => 'precos.mais_de_cinco', // this will access the attributeLabel from the member model class, and assign it to your column header

            'value' => '$data->precos->mais_de_cinco', // this will access the current group's 1st member and give out the firstname of that member

            'type' => 'raw' // this tells that the value type is raw and no formatting is to be applied to it

        ),

        'precos.id',

//        'zona_id',

//        'tabuleiro_id',

//        'menor_igual_um',

//        'entre_dois_cinco',

//        'mais_de_cinco',

        /*

          'created_at',

          'updated_at',

          'id_produto',

         */

        array(

            'class' => 'CButtonColumn',

        ),

    ),

));

?>

please need urgent help on this.

Is there a solution or i have to use another widget?

i need an answer , is it possible to use it with many many?

I thiknk I indicated in a later post to look at my RelatedSearchBehavior extension and its demo.