71 lines
1.3 KiB
PHP
71 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Entity;
|
||
|
|
|
||
|
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @ORM\Entity(repositoryClass="App\Repository\GridRepository")
|
||
|
|
*/
|
||
|
|
class Grid
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @ORM\Id()
|
||
|
|
* @ORM\GeneratedValue()
|
||
|
|
* @ORM\Column(type="integer")
|
||
|
|
*/
|
||
|
|
private $id;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var PlayedGame|null
|
||
|
|
*
|
||
|
|
* @ORM\OneToOne(targetEntity="App\Entity\PlayedGame", inversedBy="grid", cascade={"persist"})
|
||
|
|
*/
|
||
|
|
private $playedGame;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var GridRow|null
|
||
|
|
*
|
||
|
|
* @ORM\OneToMany(targetEntity="App\Entity\GridRow", mappedBy="grid", cascade={"persist"})
|
||
|
|
* @ORM\JoinColumn(name="grid_row", referencedColumnName="id", onDelete="CASCADE")
|
||
|
|
*/
|
||
|
|
private $gridRow;
|
||
|
|
|
||
|
|
public function getId(): ?int
|
||
|
|
{
|
||
|
|
return $this->id;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return PlayedGame|null
|
||
|
|
*/
|
||
|
|
public function getPlayedGame()
|
||
|
|
{
|
||
|
|
return $this->playedGame;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param PlayedGame|null $playedGame
|
||
|
|
*/
|
||
|
|
public function setPlayedGame( $playedGame): void
|
||
|
|
{
|
||
|
|
$this->playedGame = $playedGame;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return GridRow|null
|
||
|
|
*/
|
||
|
|
public function getGridRow()
|
||
|
|
{
|
||
|
|
return $this->gridRow;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param GridRow|null $gridRow
|
||
|
|
*/
|
||
|
|
public function setGridRow( $gridRow): void
|
||
|
|
{
|
||
|
|
$this->gridRow = $gridRow;
|
||
|
|
}
|
||
|
|
}
|