This question already has an answer here:
I m new in Yii i want to know about the gii does it support for relationship for tables ?
</div>
This question already has an answer here:
I m new in Yii i want to know about the gii does it support for relationship for tables ?
</div>
Gii will create relations for MyISAM tables if you include a format like the following in the comment of the referenced columns:
CONSTRAINT FOREIGN KEY (name_of_this_field) REFERENCES related_table_name(related_field_name)