private function createFlightBookerWorkflow() { Yii::trace("Create FlightBooker", "FlightTripElementWorkflow.createFlightBookerWorkflow"); $flightBookerComponent = new FlightBookerComponent(); $flightBookerComponent->setFlightBookerFromFlightVoyage($this->item->flightVoyage, $this->item->searchParams); $currentFlightBookerComponent = $flightBookerComponent->getCurrent(); $currentFlightBookerComponent->orderBookingId = self::$bookingContactInfo->id; if (!$currentFlightBookerComponent->save()) { $errMsg = "Could not save FlightBooker" . PHP_EOL . CVarDumper::dumpAsString($currentFlightBookerComponent->getErrors()); $this->logAndThrowException($errMsg, 'OrderComponent.saveCredentialsForFlight'); } Yii::trace("FlightBooker saved. FlighBooker id is " . $currentFlightBookerComponent->getPrimaryKey(), "OrderComponent.saveCredentialsForFlight"); return $flightBookerComponent; }