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
列挙型はMySQL固有のタイプであり、データベースに依存しないため、schema.ymlに列挙型の列を含めることはできません。次のようにschema.ymlに_attributeを追加することで、モデル名を簡単に変更できます。
StepAnaliseCC: _attributes: { phpName: CreditResponsability }