Private
Public Access
1
0

chg: pkg: upgrade the doctrine related back-end pkgs to the latest available version #7

This commit is contained in:
2026-04-20 09:05:36 +02:00
parent 5f856e4d70
commit 175581cdd5
30 changed files with 456 additions and 1015 deletions

View File

@@ -35,14 +35,14 @@ use Doctrine\ORM\Mapping\OneToOne;
class Grid
{
#[Id, GeneratedValue, Column]
private ?int $id = null;
public private(set) ?int $id = null;
#[OneToOne(inversedBy: 'grid', cascade: ['persist'])]
private ?PlayedGame $playedGame = null;
public ?PlayedGame $playedGame = null;
#[OneToMany(mappedBy: 'grid', targetEntity: GridRow::class, cascade: ['persist'])]
#[OneToMany(targetEntity: GridRow::class, mappedBy: 'grid', cascade: ['persist'])]
#[JoinColumn(name: 'grid_row', referencedColumnName: 'id', onDelete: 'CASCADE')]
private Collection $gridRow;
public private(set) Collection $gridRow;
public function __construct()
@@ -50,30 +50,10 @@ class Grid
$this->gridRow = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPlayedGame(): ?PlayedGame
{
return $this->playedGame;
}
public function setPlayedGame(?PlayedGame $playedGame): void
{
$this->playedGame = $playedGame;
}
public function getGridRow(): Collection
{
return $this->gridRow;
}
public function addGridRow(GridRow $gridRow): void
{
$this->gridRow->add($gridRow);
$gridRow->setGrid($this);
$gridRow->grid = $this;
}
public function removeGridRow(GridRow $gridRow): void