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:
@@ -222,7 +222,10 @@ class FlightImporter extends ImportExport
|
|||||||
|
|
||||||
$subfleet = Subfleet::firstOrCreate(
|
$subfleet = Subfleet::firstOrCreate(
|
||||||
['type' => $subfleet_type],
|
['type' => $subfleet_type],
|
||||||
['name' => $subfleet_type]
|
[
|
||||||
|
'name' => $subfleet_type,
|
||||||
|
'airline_id' => $flight->airline_id,
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$subfleet->save();
|
$subfleet->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user