draft torrent info page with related features #11

This commit is contained in:
ghost 2023-10-07 01:27:11 +03:00
parent 21ffd8aa01
commit 387acb59b6
7 changed files with 349 additions and 5 deletions

View file

@ -20,4 +20,14 @@ class TorrentRepository extends ServiceEntityRepository
{
parent::__construct($registry, Torrent::class);
}
public function findOneByIdField(int $id): ?Torrent
{
return $this->createQueryBuilder('t')
->where('t.id = :id')
->setParameter('id', $id)
->getQuery()
->getOneOrNullResult()
;
}
}