开发者

Alias enum values in schema.yml

Can anyone tell me if there's any way to add an alias to a value of a enum fixture type?

Something like this:

r开发者_Python百科esponsabilityType:
  values:
    - ~
    - StepAnaliseCC as Credit Responsability
  notnull: false


Enum is a MySQL specific type, you cannot have a column of type enum in your schema.yml as it is database-independent. You can easily change the model name by adding an _attribute in schema.yml like so:

StepAnaliseCC: 
    _attributes: { phpName: CreditResponsability }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜