gii在mysql里面,如果没有定义外键

那么就会出错。。。

ModelCode.php 249行 未判断$table->foreignKeys 是否为空