私はこのschema.ymlを持っています
Region:
columns:
name: { type: string(255), notnull: true, unique: true }
options:
symfony: { form: false, filter: false }
Province:
columns:
id: { type: string(2), notnull: true, primary: true }
name: { type: string(255), notnull: true, unique: true }
region_id: { type: integer, notnull: true }
relations:
Region: { local: region_id, foreign: id, onDelete: CASCADE, foreignAlias: Provinces }
options:
symfony: { form: false, filter: false }
City:
columns:
id: { type: string(4), notnull: true, primary: true }
name: { type: string(255), notnull: true, unique: true }
province_id: { type: string(2), notnull: true }
latitude: { type: decimal, scale: 6, size: 8, notnull: true }
longitude: { type: decimal, scale: 6, size: 8, notnull: true }
relations:
Province: { local: province_id, foreign: id, onDelete: CASCADE, foreignAlias: Cities }
options:
symfony: { form: false, filter: false }
これらのフィールドが相互に関連しているフォームを作成したいと思います。ドロップダウンメニューで地域を選択し、次のドロップダウンメニューで選択した地域の州から選択でき、最後のドロップダウンメニューでのみ表示されます。以前に選択された州の都市。
これを行う方法がわかりません...助けていただけませんか?