aircraftRepo = $aircraftRepo; $this->pirepRepo = $pirepRepo; } public function create( Pirep $pirep, array $field_values # PirepFieldValues ) { $pirep->save(); foreach($field_values as $fv) { $v = new PirepFieldValues(); $v->name = $fv['name']; $v->value = $fv['value']; $v->source = $fv['source']; $v->save(); } # TODO: Financials } }