public function update($flightArray) { $flight = Flight::fromArray($flightArray); try { return $this->mapper->update($flight); } catch (Exception $e) { $this->handleException($e); } }