Browse Source

Modif TicketUtils (set updatedAt)

feature/export_comptable
Guillaume 4 years ago
parent
commit
a814096813
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ShopBundle/Services/TicketUtils.php

+ 3
- 1
ShopBundle/Services/TicketUtils.php View File



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 ;

Loading…
Cancel
Save