optimize catalog semantic match sby tags

This commit is contained in:
team2
2026-02-28 16:10:47 +01:00
parent d3294464ea
commit 0d3f6e21d6
13 changed files with 329 additions and 151 deletions

View File

@@ -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;