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.
谁能告诉我是否有任何方法可以为枚举夹具类型的值添加别名?
像这样的东西:
responsabilityType: values: - ~ - StepAnaliseCC as Credit Responsability notnull: false
Enum 是 MySQL 特定的类型,在 schema.yml 中不能有 enum 类型的列,因为它与数据库无关。您可以通过在 schema.yml 中添加 _attribute 来轻松更改模型名称,如下所示:
StepAnaliseCC: _attributes: { phpName: CreditResponsability }