mangaRepository->findById($command->mangaId->getValue()); if ($manga === null) { throw new MangaNotFoundException(); } if($manga->getExternalId() === null){ throw new MangadexApiException("Manga has no external_id"); } // Synchronisation initiale (pas d'événements) $this->chapterSynchronizationService->synchronizeChapters($manga); } }