Browse Source

change method name

main
ghost 1 year ago
parent
commit
d2f7fff24e
  1. 2
      src/Repository/TorrentRepository.php

2
src/Repository/TorrentRepository.php

@ -21,7 +21,7 @@ class TorrentRepository extends ServiceEntityRepository @@ -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')

Loading…
Cancel
Save