/**
  * Update certain properties of the Ticket
  * @param Command\UpdatePropertiesCommand $command
  * @return Ticket
  *
  * @throws TicketNotFoundException
  * @throws ForbiddenException
  */
 public function updateProperties(Command\UpdatePropertiesCommand $command)
 {
     $ticket = $this->loadTicketById($command->id);
     $this->isGranted('EDIT', $ticket);
     $ticket->updateProperties($command->properties);
     $this->ticketRepository->store($ticket);
     $this->loadTagging($ticket);
     $this->dispatchWorkflowEvent($this->doctrineRegistry, $this->dispatcher, $ticket);
     return $ticket;
 }
 /**
  * Update certain properties of the Ticket
  * @param Command\UpdatePropertiesCommand $command
  * @return Ticket
  */
 public function updateProperties(Command\UpdatePropertiesCommand $command)
 {
     /**
      * @var $ticket \Diamante\DeskBundle\Model\Ticket\Ticket
      */
     $ticket = $this->loadTicketById($command->id);
     $this->isGranted('EDIT', $ticket);
     $ticket->updateProperties($command->properties);
     $this->ticketRepository->store($ticket);
     $this->dispatchEvents($ticket);
     return $ticket;
 }