feat: persist and sort by viewed by admins status of teamers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user