chg: pkg: upgrade the doctrine related back-end pkgs to the latest available version #7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user