diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index f038b70..166fcab 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -325,7 +325,7 @@ class TorrentController extends AbstractController $torrent->getId() ); - // Redirect to info article created + // Redirect to info page return $this->redirectToRoute( 'torrent_info', [ @@ -519,7 +519,7 @@ class TorrentController extends AbstractController $torrentLocales->getId() ); - // Redirect to info article created + // Redirect to info page return $this->redirectToRoute( 'torrent_info', [ @@ -622,7 +622,7 @@ class TorrentController extends AbstractController $torrentLocales->getId() ); - // Redirect to info article created + // Redirect back to form return $this->redirectToRoute( 'torrent_locales_edit', [ @@ -695,7 +695,7 @@ class TorrentController extends AbstractController $torrentLocales->getId() ); - // Redirect to info article created + // Redirect back to form return $this->redirectToRoute( 'torrent_locales_edit', [ diff --git a/src/Entity/ArticleTorrents.php b/src/Entity/ArticleTorrents.php deleted file mode 100644 index 22ab371..0000000 --- a/src/Entity/ArticleTorrents.php +++ /dev/null @@ -1,103 +0,0 @@ -id; - } - - public function setId(string $id): static - { - $this->id = $id; - - return $this; - } - - public function getArticleId(): ?int - { - return $this->articleId; - } - - public function setArticleId(int $articleId): static - { - $this->articleId = $articleId; - - return $this; - } - - public function getUserId(): ?int - { - return $this->userId; - } - - public function setUserId(int $userId): static - { - $this->userId = $userId; - - return $this; - } - - public function getTorrentsId(): array - { - return $this->torrentsId; - } - - public function setTorrentsId(array $torrentsId): static - { - $this->torrentsId = $torrentsId; - - return $this; - } - - public function getAdded(): ?int - { - return $this->added; - } - - public function setAdded(int $added): static - { - $this->added = $added; - - return $this; - } - - public function isApproved(): ?bool - { - return $this->approved; - } - - public function setApproved(bool $approved): static - { - $this->approved = $approved; - - return $this; - } -} diff --git a/src/Repository/ArticleTorrentsRepository.php b/src/Repository/ArticleTorrentsRepository.php deleted file mode 100644 index d3e7d9e..0000000 --- a/src/Repository/ArticleTorrentsRepository.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * @method ArticleTorrents|null find($id, $lockMode = null, $lockVersion = null) - * @method ArticleTorrents|null findOneBy(array $criteria, array $orderBy = null) - * @method ArticleTorrents[] findAll() - * @method ArticleTorrents[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class ArticleTorrentsRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, ArticleTorrents::class); - } -} diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index d1a823e..1a25401 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -264,7 +264,7 @@ {% endfor %} {% endfor %} -
-