Private
Public Access
1
0
Files
MineSeeker/src/Mine/SeekerBundle/Entity/GridCol.php~

97 lines
1.6 KiB
PHP
Raw Normal View History

2016-10-21 23:30:41 +02:00
<?php
namespace Mine\SeekerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
2016-10-25 11:19:50 +02:00
* GridCol
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @ORM\Table(name="grid_col")
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridColRepository")
2016-10-21 23:30:41 +02:00
*/
class GridCol
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
2016-10-25 11:19:50 +02:00
* @var string
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @ORM\Column(name="col", type="string", length=1, nullable=false)
2016-10-21 23:30:41 +02:00
*/
2016-10-25 11:19:50 +02:00
private $col;
2016-10-21 23:30:41 +02:00
/**
2016-10-25 11:19:50 +02:00
* @var GridRow
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\GridRow", inversedBy="gridCol", cascade={"persist"})
* @ORM\JoinColumn(name="grid_col", referencedColumnName="id", onDelete="CASCADE")
2016-10-21 23:30:41 +02:00
*/
2016-10-25 11:19:50 +02:00
private $gridCol;
2016-10-21 23:30:41 +02:00
/**
* Get id
*
2016-10-25 11:19:50 +02:00
* @return integer
2016-10-21 23:30:41 +02:00
*/
public function getId()
{
return $this->id;
}
/**
2016-10-25 11:19:50 +02:00
* Set col
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @param integer $col
2016-10-21 23:30:41 +02:00
*
* @return GridCol
*/
2016-10-25 11:19:50 +02:00
public function setCol($col)
2016-10-21 23:30:41 +02:00
{
2016-10-25 11:19:50 +02:00
$this->col = $col;
2016-10-21 23:30:41 +02:00
return $this;
}
/**
2016-10-25 11:19:50 +02:00
* Get col
2016-10-21 23:30:41 +02:00
*
* @return integer
*/
2016-10-25 11:19:50 +02:00
public function getCol()
2016-10-21 23:30:41 +02:00
{
2016-10-25 11:19:50 +02:00
return $this->col;
2016-10-21 23:30:41 +02:00
}
/**
2016-10-25 11:19:50 +02:00
* Set gridCol
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @param GridRow $gridCol
2016-10-21 23:30:41 +02:00
*
* @return GridCol
*/
2016-10-25 11:19:50 +02:00
public function setGridCol(GridRow $gridCol = null)
2016-10-21 23:30:41 +02:00
{
2016-10-25 11:19:50 +02:00
$this->gridCol = $gridCol;
2016-10-21 23:30:41 +02:00
return $this;
}
/**
2016-10-25 11:19:50 +02:00
* Get gridCol
2016-10-21 23:30:41 +02:00
*
2016-10-25 11:19:50 +02:00
* @return GridRow
2016-10-21 23:30:41 +02:00
*/
2016-10-25 11:19:50 +02:00
public function getGridCol()
2016-10-21 23:30:41 +02:00
{
2016-10-25 11:19:50 +02:00
return $this->gridCol;
2016-10-21 23:30:41 +02:00
}
}