if ($form->isSubmitted() && $form->isValid()) { | if ($form->isSubmitted() && $form->isValid()) { | ||||
$ticket = $form->getData(); | $ticket = $form->getData(); | ||||
// @TODO : check si ça marche sans | |||||
foreach ($ticket->getTicketMessages() as $ticketMessage) { | |||||
$this->get('em')->persist($ticketMessage); | |||||
} | |||||
$this->get('em')->persist($ticket); | $this->get('em')->persist($ticket); | ||||
$this->get('em')->flush(); | $this->get('em')->flush(); | ||||