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