if(isset($params['closeTicket']) && $params['closeTicket']) { | if(isset($params['closeTicket']) && $params['closeTicket']) { | ||||
$ticket->setTicketStatus(Ticket::TICKET_STATUS_CLOSED) ; | $ticket->setTicketStatus(Ticket::TICKET_STATUS_CLOSED) ; | ||||
$this->em->persist($ticket); | |||||
} | } | ||||
$ticket->setUpdatedAt(new \DateTime()) ; | |||||
$this->em->persist($ticket); | |||||
$this->em->flush() ; | $this->em->flush() ; | ||||
return $ticketMessage ; | return $ticketMessage ; |