Reputation: 2433
Can anyone tell me if there's any way to add an alias to a value of a enum fixture type?
Something like this:
responsabilityType:
values:
- ~
- StepAnaliseCC as Credit Responsability
notnull: false
Upvotes: 1
Views: 317
Reputation: 3521
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 }
Upvotes: 1