Typerating FK and editor changes to match
This commit is contained in:
@@ -25,7 +25,7 @@ class AircraftType extends Model
|
||||
* @var array Validation rules
|
||||
*/
|
||||
public $rules = [
|
||||
'aircraft_manufacturer' => 'required',
|
||||
'aircraft_manufacturer_id' => 'required',
|
||||
'typerating_id' => 'required',
|
||||
'only_charter' => 'required',
|
||||
'type' => 'required',
|
||||
@@ -52,6 +52,7 @@ class AircraftType extends Model
|
||||
|
||||
public $belongsTo = [
|
||||
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
|
||||
'typerating' => 'GermanAirlinesVa\Schooling\Models\Typerating',
|
||||
];
|
||||
|
||||
public $belongsToMany = [
|
||||
|
||||
Reference in New Issue
Block a user