private function getParams(FoodOrder $foodOrder) { // var_dump($foodOrder); // die(); $params = array(':order_id' => $foodOrder->getOrderId(), ':user_id' => $foodOrder->getUserId(), ':full_name' => $foodOrder->getFullName(), ':email' => $foodOrder->getEmail(), ':phone_number' => $foodOrder->getPhoneNumber(), ':product_id' => $foodOrder->getProductId(), ':status' => $foodOrder->getStatus()); // if ($flightBooking->getId()) { // // unset created date, this one is never updated // unset($params[':created_on']); // } return $params; }