すべてのユーザーのすべてのプロファイルを保存するプロファイル テーブルがあります。さまざまなタイプのユーザーがいて、特定のフィールドを選択するためのさまざまな選択オプションを各タイプのユーザーに持たせたいと考えています。
したがって、どちらのユーザー タイプも登録期間を選択できますが、オプションが異なります。1 つは 2 年を選択でき、もう 1 つは選択できません。
schema.yml は次のようになります。
ユーザープロフィール:
columns:
username:
type: string(255)
notnull: true
unique: false
WriterUserProfile:
inheritance:
type: column_aggregation
extends: UserProfile
columns:
register_time:
type: enum
values:
- 6 months
- 1 year
- 2 years
- Other
default: other
ReaderUserProfile:
inheritance:
type: column_aggregation
extends: UserProfile
columns:
register_time:
type: enum
values:
- 6 months
- 1 year
- Other
default: other
何らかの理由で「2 年」オプションを選択できません。フォームに「無効」エラーが表示されます。
「2 年」と「その他」はどちらも第 3 選択肢なので一致しますか?