2

I m new in Yii i want to know about the gii does it support for relationship for tables ?

John Smith
  • 21
  • 1

1 Answers1

0

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)

Ionut Flavius Pogacian
  • 4,750
  • 14
  • 58
  • 100