Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下数据库设计,如图所示:
如图所示,Invoices 模型与 InvoiceItems 模型具有一对多的关系。但是,当我使用 Gii 生成 CRUD 时,它会在inovieces/view没有来自 invoice-items 表(InvoiceItems 模型)的任何相关数据的情况下生成。
inovieces/view
在模型生成期间,我检查了Generate Relations. 所以,我要求为 Yii2 提供更好的代码生成插件,它能够使关系在 CRUD 中可用。
Generate Relations