Replace all magic calls to special tags
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user