|
|
@@ -24,10 +24,19 @@ class TicketController extends AdminController |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function persistEntity($entity) |
|
|
|
public function persistTicketEntity($entity, $form) |
|
|
|
{ |
|
|
|
$entity->setStatus(Ticket::TICKET_STATUS_OPEN); |
|
|
|
parent::persistEntity($entity); |
|
|
|
|
|
|
|
$ticket = $this->ticketUtils->createTicket([ |
|
|
|
'user' => $entity->getUser(), |
|
|
|
'type' => $entity->getType(), |
|
|
|
'orderShop' => $entity->getOrderShop(), |
|
|
|
'subject' => $entity->getSubject(), |
|
|
|
'message' => $form->get('message')->getData(), |
|
|
|
'answerByAdmin' =>true, |
|
|
|
]) ; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
protected function createListQueryBuilder($entityClass, $sortDirection, $sortField = null, $dqlFilter = null) |