Aircraft Airport Relation
This commit is contained in:
parent
7244639051
commit
fe3bc46636
@ -14,7 +14,7 @@
|
||||
|
||||
- BelongsTo AircraftType
|
||||
- BelongsToMany AircraftTypeGroup
|
||||
- **TODO, 2x** BelongsTo Airport (External DB)
|
||||
- BelongsTo Airport (2x, External DB, creation in Routes Plugin)
|
||||
|
||||
## AircraftTypeGroup
|
||||
|
||||
|
||||
@ -33,5 +33,7 @@ class Aircraft extends Model
|
||||
|
||||
public $belongsTo = [
|
||||
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
|
||||
'home_airport' => 'GermanAirlinesVa\Routes\Models\Airport',
|
||||
'airport' => 'GermanAirlinesVa\Routes\Models\Airport',
|
||||
];
|
||||
}
|
||||
|
||||
@ -7,12 +7,16 @@ columns:
|
||||
type: text
|
||||
relation: aircraft_type
|
||||
valueFrom: type
|
||||
home_airport_id:
|
||||
label: home_airport_id
|
||||
home_airport:
|
||||
label: home_airport
|
||||
type: text
|
||||
airport_id:
|
||||
label: airport_id
|
||||
relation: home_airport
|
||||
valueFrom: icao
|
||||
airport:
|
||||
label: airport
|
||||
type: text
|
||||
relation: airport
|
||||
valueFrom: icao
|
||||
name:
|
||||
label: name
|
||||
type: text
|
||||
|
||||
@ -16,8 +16,10 @@ fields:
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
home_airport_id:
|
||||
home_airport:
|
||||
label: 'germanairlinesva.fleet::lang.aircrafts.home_base'
|
||||
nameFrom: name
|
||||
descriptionFrom: description
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
type: relation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user