Private
Public Access
1
0

new: usr: add mineseeker game to the symfony 4 project #3

This commit is contained in:
2019-10-27 13:35:33 +01:00
parent 6caf340302
commit 3bbc96c76c
160 changed files with 49951 additions and 602 deletions

70
src/Entity/GridRow.php Normal file
View File

@@ -0,0 +1,70 @@
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\GridRowRepository")
*/
class GridRow
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var Grid|null
*
* @ORM\ManyToOne(targetEntity="App\Entity\Grid", inversedBy="gridRow", cascade={"persist"})
* @ORM\JoinColumn(name="grid", referencedColumnName="id", onDelete="CASCADE")
*/
private $grid;
/**
* @var array|null
*
* @ORM\Column(name="grid_col", type="json_array", nullable=false)
*/
private $gridCol;
public function getId(): ?int
{
return $this->id;
}
/**
* @return Grid|null
*/
public function getGrid()
{
return $this->grid;
}
/**
* @param Grid|null $grid
*/
public function setGrid( $grid): void
{
$this->grid = $grid;
}
/**
* @return array|null
*/
public function getGridCol()
{
return $this->gridCol;
}
/**
* @param array|null $gridCol
*/
public function setGridCol($gridCol): void
{
$this->gridCol = $gridCol;
}
}