From d2f7fff24e480886fd3c5303d619664fe0fc8f46 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 9 Oct 2023 02:27:54 +0300 Subject: [PATCH] change method name --- src/Repository/TorrentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')