Add airline_id to created subfleet/subfleets during flight import. (#1320)

Add airline_id to created subfleet/subfleets during flight import.
This commit is contained in:
B.Fatih KOZ
2021-09-29 03:17:12 +03:00
committed by GitHub
parent f99af4cfc3
commit f3b032e56b

View File

@@ -222,7 +222,10 @@ class FlightImporter extends ImportExport
$subfleet = Subfleet::firstOrCreate(
['type' => $subfleet_type],
['name' => $subfleet_type]
[
'name' => $subfleet_type,
'airline_id' => $flight->airline_id,
]
);
$subfleet->save();