Private
Public Access
1
0

chg: usr: make fancy og tags - and create a special one for battle sharing #4

This commit is contained in:
2026-04-14 18:54:44 +02:00
parent 5d6aff8d90
commit d515f42cfd
21 changed files with 782 additions and 318 deletions

View File

@@ -23,6 +23,7 @@ use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToMany;
use Doctrine\ORM\Mapping\OneToOne;
use Symfony\Component\Uid\Uuid;
/**
* Class PlayedGame
@@ -40,6 +41,9 @@ class PlayedGame
#[Id, GeneratedValue, Column]
private ?int $id = null;
#[Column(type: 'uuid', unique: true)]
private ?Uuid $uuid = null;
#[Column(length: 50)]
private ?string $gameAssoc = null;
@@ -90,6 +94,7 @@ class PlayedGame
public function __construct()
{
$this->steps = new ArrayCollection();
$this->uuid = Uuid::v4();
}
public function getId(): ?int
@@ -97,6 +102,16 @@ class PlayedGame
return $this->id;
}
public function getUuid(): ?Uuid
{
return $this->uuid;
}
public function setUuid(?Uuid $uuid): void
{
$this->uuid = $uuid;
}
public function getGameAssoc(): ?string
{
return $this->gameAssoc;