Updated rechten voor speler. Settings toegevoegd en onderdelen voor game1 toegevoegd.

This commit is contained in:
Frank
2026-01-05 17:07:32 +01:00
parent af13be2196
commit 10c3dbc066
29 changed files with 531 additions and 17 deletions

View File

@@ -0,0 +1,67 @@
<?php
namespace App\Game\Entity;
use App\Game\Repository\GameSettingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GameSettingRepository::class)]
#[ORM\Table(name: 'game_setting')]
class GameSetting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Game::class)]
#[ORM\JoinColumn(nullable: false)]
private ?Game $game = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
public function getId(): ?int
{
return $this->id;
}
public function getGame(): ?Game
{
return $this->game;
}
public function setGame(?Game $game): static
{
$this->game = $game;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
}