Typerating FK and editor changes to match

This commit is contained in:
Gogs
2021-06-14 00:06:07 +02:00
parent d2d57fdb78
commit f01610d30d
6 changed files with 29 additions and 26 deletions
+2 -1
View File
@@ -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 = [