chg: usr: make fancy og tags - and create a special one for battle sharing #4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user