public function saveComment(OrderEvent $orderEvent)
 {
     $comment = $this->request->getSession()->get('order-comment');
     $order = $orderEvent->getOrder();
     $orderId = $order->getId();
     if ($orderId != null && $comment != null) {
         $orderComment = new OrderComment();
         $orderComment->setOrderId($orderId);
         $orderComment->setComment($comment);
         $orderComment->save();
         $this->request->getSession()->set('order-comment', '');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildOrderComment $orderComment Object to remove from the list of results
  *
  * @return ChildOrderCommentQuery The current query, for fluid interface
  */
 public function prune($orderComment = null)
 {
     if ($orderComment) {
         $this->addUsingAlias(OrderCommentTableMap::ID, $orderComment->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }