exportGenerationRepository->find($message->exportGenerationId); if (null === $exportGeneration) { $this->logger->error(self::LOG_PREFIX.'ExportGeneration not found'); throw new UnrecoverableMessageHandlingException(self::LOG_PREFIX.'ExportGeneration not found'); } $storedObject = $exportGeneration->getStoredObject(); $storedObject->setDeleteAt($this->clock->now()); $this->entityManager->remove($exportGeneration); $this->entityManager->flush(); } }