public function remove(User $item) { $this->transaction->requestTransaction(); try { $item->remove($this->conn); $this->eventDispatcher->dispatch(CantigaEvents::USER_REMOVED, new UserEvent($item)); } catch (Exception $exception) { $this->transaction->requestRollback(); throw $exception; } }