change method name

This commit is contained in:
ghost 2023-10-09 02:27:54 +03:00
parent 2f06c2a7e5
commit d2f7fff24e

View File

@ -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')