feat: persist and sort by viewed by admins status of teamers

This commit is contained in:
Björn Fromme
2024-06-23 17:28:15 +02:00
parent 8d8d6dacd3
commit b58bd9f34f
5 changed files with 72 additions and 7 deletions
+15
View File
@@ -131,6 +131,9 @@ class Teamer implements TimestampableEntityInterface
#[ORM\Column(nullable: true)]
private ?array $crmSelections = null;
#[ORM\Column]
private bool $viewed = false;
public function __construct()
{
$this->uuid = Uuid::v4();
@@ -767,4 +770,16 @@ class Teamer implements TimestampableEntityInterface
return $this;
}
public function isViewed(): bool
{
return $this->viewed;
}
public function setViewed(bool $viewed): static
{
$this->viewed = $viewed;
return $this;
}
}