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

@@ -72,9 +72,11 @@ class TicketUtils

if(isset($params['closeTicket']) && $params['closeTicket']) {
$ticket->setTicketStatus(Ticket::TICKET_STATUS_CLOSED) ;
$this->em->persist($ticket);
}

$ticket->setUpdatedAt(new \DateTime()) ;
$this->em->persist($ticket);

$this->em->flush() ;

return $ticketMessage ;

Loading…
Cancel
Save