mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 20:54:52 +00:00
update method names
This commit is contained in:
parent
6752b7b93e
commit
2f06c2a7e5
@ -31,7 +31,7 @@ class TorrentLocalesRepository extends ServiceEntityRepository
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findLastTorrentLocales(int $torrentId): ?TorrentLocales
|
public function findLastTorrentLocalesByTorrentId(int $torrentId): ?TorrentLocales
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('tl')
|
return $this->createQueryBuilder('tl')
|
||||||
->where('tl.torrentId = :torrentId')
|
->where('tl.torrentId = :torrentId')
|
||||||
@ -43,7 +43,7 @@ class TorrentLocalesRepository extends ServiceEntityRepository
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findTorrentLocales(int $torrentId): array
|
public function findTorrentLocalesByTorrentId(int $torrentId): array
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('tl')
|
return $this->createQueryBuilder('tl')
|
||||||
->where('tl.torrentId = :torrentId')
|
->where('tl.torrentId = :torrentId')
|
||||||
|
@ -31,7 +31,7 @@ class TorrentSensitiveRepository extends ServiceEntityRepository
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findLastTorrentSensitive(int $torrentId): ?TorrentSensitive
|
public function findLastTorrentSensitiveByTorrentId(int $torrentId): ?TorrentSensitive
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('ts')
|
return $this->createQueryBuilder('ts')
|
||||||
->where('ts.torrentId = :torrentId')
|
->where('ts.torrentId = :torrentId')
|
||||||
@ -43,7 +43,7 @@ class TorrentSensitiveRepository extends ServiceEntityRepository
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findTorrentSensitive(int $torrentId): array
|
public function findTorrentSensitiveByTorrentId(int $torrentId): array
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('ts')
|
return $this->createQueryBuilder('ts')
|
||||||
->where('ts.torrentId = :torrentId')
|
->where('ts.torrentId = :torrentId')
|
||||||
|
@ -165,7 +165,7 @@ class TorrentService
|
|||||||
{
|
{
|
||||||
return $this->entityManagerInterface
|
return $this->entityManagerInterface
|
||||||
->getRepository(Torrent::class)
|
->getRepository(Torrent::class)
|
||||||
->findOneByIdField($id);
|
->getTorrent($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addTorrent(
|
public function addTorrent(
|
||||||
@ -196,18 +196,18 @@ class TorrentService
|
|||||||
->getTorrentLocales($id);
|
->getTorrentLocales($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findLastTorrentLocales(int $torrentId): ?TorrentLocales
|
public function findLastTorrentLocalesByTorrentId(int $torrentId): ?TorrentLocales
|
||||||
{
|
{
|
||||||
return $this->entityManagerInterface
|
return $this->entityManagerInterface
|
||||||
->getRepository(TorrentLocales::class)
|
->getRepository(TorrentLocales::class)
|
||||||
->findLastTorrentLocales($torrentId);
|
->findLastTorrentLocalesByTorrentId($torrentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findTorrentLocales(int $torrentId): array
|
public function findTorrentLocalesByTorrentId(int $torrentId): array
|
||||||
{
|
{
|
||||||
return $this->entityManagerInterface
|
return $this->entityManagerInterface
|
||||||
->getRepository(TorrentLocales::class)
|
->getRepository(TorrentLocales::class)
|
||||||
->findTorrentLocales($torrentId);
|
->findTorrentLocalesByTorrentId($torrentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toggleTorrentLocalesApproved(
|
public function toggleTorrentLocalesApproved(
|
||||||
@ -268,18 +268,18 @@ class TorrentService
|
|||||||
->getTorrentSensitive($id);
|
->getTorrentSensitive($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findLastTorrentSensitive(int $torrentId): ?TorrentSensitive
|
public function findLastTorrentSensitiveByTorrentId(int $torrentId): ?TorrentSensitive
|
||||||
{
|
{
|
||||||
return $this->entityManagerInterface
|
return $this->entityManagerInterface
|
||||||
->getRepository(TorrentSensitive::class)
|
->getRepository(TorrentSensitive::class)
|
||||||
->findLastTorrentSensitive($torrentId);
|
->findLastTorrentSensitiveByTorrentId($torrentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findTorrentSensitive(int $torrentId): array
|
public function findTorrentSensitiveByTorrentId(int $torrentId): array
|
||||||
{
|
{
|
||||||
return $this->entityManagerInterface
|
return $this->entityManagerInterface
|
||||||
->getRepository(TorrentSensitive::class)
|
->getRepository(TorrentSensitive::class)
|
||||||
->findTorrentSensitive($torrentId);
|
->findTorrentSensitiveByTorrentId($torrentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toggleTorrentSensitiveApproved(
|
public function toggleTorrentSensitiveApproved(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user