mangaRepository->findVisibleChapterById($command->chapterId); if (!$chapter) { throw new ChapterNotFoundException($command->chapterId); } $manga = $this->mangaRepository->findById($chapter->getMangaId()->getValue()); $manga->hideChapter($chapter); $this->mangaRepository->save($manga); } }