code: public function onUpdate(ResourceEventInterface $event)
      {
          $ticket = $this->getTicketFromEvent($event);
  
          if ($this->handleUpdate($ticket)) {
              $this->persistenceHelper->persistAndRecompute($ticket, false);
          }
      }
docs: Update event handler.
  
  @param ResourceEventInterface $event