Fill Another Attribute Of Related Table - Yii

i have two table as like user and education

user table has refer the education id based on that it display course name.

but the problem is when I’m using the _form to add new user details it ask the education_id (course) instant of id i want to text field that should be filled by the user…


Education Table:


+--------------+

|  id | course |

+----+---------+

|  1 |   BE    |

+----+---------+

|  2 |   Dr    |

+----+---------+

|  3 |  Arts   |

+----+---------+

|  4 | Diploma |

+--------------+





User table: 


	| id |  fname  | lname  | mail  | edu_id  

---------------------------------------

	|  1 |    x	   |    y   |  xxx  |  4

	|  2 |    z    |    a   |  yyy  |  2




i think its possible in yii…

thanks in advance

/* moved to General Discussion */

(not tip, snippet or tutorial)

i think you can create the drop-down list on user from

like…


<?php dropDownList($model,'educ_id', CHtml::listData(Education::model()->findAll(),'id','course')); ?>