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 }
精彩评论