YII2 使 crud 字段成为必需的
YII2 make crud fields required
是否可以将 CRUD 字段设置为必填字段?如果我的数据库中有 NOT NULL
个字段 table 我将得到 Integrity constraint violation
错误而不是简单的客户端 required
验证。
是否可以将 CRUD 字段设置为必填字段?如果我的数据库中有 NOT NULL
个字段 table 我将得到 Integrity constraint violation
错误而不是简单的客户端 required
验证。