yii框架使用model出現(xiàn) table does not exist的解決辦法
1 回答

慕斯709654
TA貢獻(xiàn)1840條經(jīng)驗(yàn) 獲得超5個贊
在相應(yīng)的model中添加該方法:
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%table_name}}';
}
- 1 回答
- 0 關(guān)注
- 863 瀏覽
添加回答
舉報(bào)
0/150
提交
取消