clistview, dropdownlist filter

Hi Yii devs.

I have a small problem.

My db structure is:

One ‘recept’ can be in many ‘kategorija’(relation).

This is how my dropdownlist looks:


 $list = CHtml::listData(Categories::model()->findAll(), 'idkategorija', 'kategorija');

     echo $form->dropDownList($model,'kat.idrecept',$list); 

Recept model:




public function relations()

	{

		// NOTE: you may need to adjust the relation name and the related

		// class name for the relations automatically generated below.

		return array(

                    'kat' => array(self::HAS_MANY, 'Recept2kat', 'idrecept'),  

		); 

	}



error:

Property "Recept.kat.idkategorija" is not defined.

/I want to make filter with dropdownlist.