Replace all magic calls to special tags

This commit is contained in:
Tim
2025-05-11 00:05:14 +02:00
parent 42bcd39453
commit 951b227efc
4 changed files with 22 additions and 9 deletions

View File

@ -2,6 +2,7 @@
namespace App\Entity;
use App\Dto\SnipFilterRequest;
use App\Repository\TagRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
@ -18,8 +19,8 @@ class Tag
private ?int $id = null;
#[ORM\Column(length: 255)]
#[Assert\NotEqualTo('all')]
#[Assert\NotEqualTo('none')]
#[Assert\NotEqualTo(SnipFilterRequest::TAG_ALL)]
#[Assert\NotEqualTo(SnipFilterRequest::TAG_NONE)]
private ?string $name = null;
#[ORM\ManyToOne]