diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index dc729d2..14eaa10 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -484,9 +484,9 @@ class TorrentService int $torrentSensitiveId ): ?TorrentSensitive { - $torrentSensitive = $this->find( - $torrentSensitiveId - ); + $torrentSensitive = $this->entityManagerInterface + ->getRepository(TorrentSensitive::class) + ->find($torrentSensitiveId); $torrentSensitive->setApproved( !$torrentSensitive->isApproved() // toggle current value