diff --git a/src/Repository/TorrentRepository.php b/src/Repository/TorrentRepository.php index 60975fb..2ab05f6 100644 --- a/src/Repository/TorrentRepository.php +++ b/src/Repository/TorrentRepository.php @@ -21,7 +21,7 @@ class TorrentRepository extends ServiceEntityRepository parent::__construct($registry, Torrent::class); } - public function findOneByIdField(int $id): ?Torrent + public function getTorrent(int $id): ?Torrent { return $this->createQueryBuilder('t') ->where('t.id = :id')