optimize catalog semantic match sby tags
This commit is contained in:
@@ -24,6 +24,14 @@ class Tag
|
||||
#[ORM\Column(type: 'text', nullable: true)]
|
||||
private ?string $description = null;
|
||||
|
||||
/**
|
||||
* NEU: Governance-Typ des Tags
|
||||
* - generic
|
||||
* - catalog_entity
|
||||
*/
|
||||
#[ORM\Column(length: 50)]
|
||||
private string $type = 'generic';
|
||||
|
||||
#[ORM\Column]
|
||||
private \DateTimeImmutable $createdAt;
|
||||
|
||||
@@ -75,6 +83,18 @@ class Tag
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setType(string $type): static
|
||||
{
|
||||
$type = trim($type);
|
||||
$this->type = $type !== '' ? $type : 'generic';
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCreatedAt(): \DateTimeImmutable
|
||||
{
|
||||
return $this->createdAt;
|
||||
|
||||
Reference in New Issue
Block a user