Use enums in flag providers and rename NotificationEnum to NotificationFlagEnum

This commit is contained in:
2025-06-18 15:24:12 +02:00
parent acad9d1553
commit cf391d60fe
14 changed files with 35 additions and 28 deletions

View File

@@ -101,8 +101,8 @@ class Notification implements TrackUpdateInterface
#[ORM\ManyToOne(targetEntity: User::class)]
private ?User $updatedBy = null;
#[ORM\Column(name: 'type', type: Types::STRING, nullable: true, enumType: NotificationEnum::class)]
private NotificationEnum $type;
#[ORM\Column(name: 'type', type: Types::STRING, nullable: true, enumType: NotificationFlagEnum::class)]
private NotificationFlagEnum $type;
public function __construct()
{
@@ -394,14 +394,14 @@ class Notification implements TrackUpdateInterface
return $this;
}
public function setType(NotificationEnum $type): self
public function setType(NotificationFlagEnum $type): self
{
$this->type = $type;
return $this;
}
public function getType(): NotificationEnum
public function getType(): NotificationFlagEnum
{
return $this->type;
}