private function getParams(SimpleBlogPost $blogPost) { $params = array(':blog_id' => $blogPost->getId(), ':status' => $blogPost->getStatus(), ':date' => self::formatDateTime($blogPost->getDate()), ':content' => $blogPost->getContent(), ':description' => $blogPost->getDescription(), ':created_by' => $blogPost->getCreatedBy(), ':modified_by' => $blogPost->getModifiedBy(), ':restaurant_id' => $blogPost->getRestaurantId()); // if ($flightBooking->getId()) { // // unset created date, this one is never updated // unset($params[':created_on']); // } return $params; }