开发者

Alias enum values in schema.yml

开发者 https://www.devze.com 2022-12-16 22:26 出处:网络
Can anyone tell me if there\'s any way to add an alias to a value of a enum fixture type? Something like this:

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

精彩评论

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

关注公众号