create entities and repositories
This commit is contained in:
183
src/Mine/SeekerBundle/Entity/Gamer.php
Normal file
183
src/Mine/SeekerBundle/Entity/Gamer.php
Normal file
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Gamer
|
||||
*
|
||||
* @ORM\Table(name="gamer")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GamerRepository")
|
||||
*/
|
||||
class Gamer
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="user_name", type="string", length=100, nullable=false)
|
||||
*/
|
||||
private $userName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="ip", type="string", length=20, nullable=true)
|
||||
*/
|
||||
private $ip;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* $ip='0.0.0.0';
|
||||
* $ip=$_SERVER['REMOTE_ADDR'];
|
||||
* $clientDetails = json_decode(file_get_contents("http://ipinfo.io/$ip/json"));
|
||||
* echo "You're logged in from: <b>" . $clientDetails->country . "</b>";
|
||||
*
|
||||
* function GetIP()
|
||||
* {
|
||||
* if ( getenv("HTTP_CLIENT_IP") ) {
|
||||
* $ip = getenv("HTTP_CLIENT_IP");
|
||||
* } elseif ( getenv("HTTP_X_FORWARDED_FOR") ) {
|
||||
* $ip = getenv("HTTP_X_FORWARDED_FOR");
|
||||
* if ( strstr($ip, ',') ) {
|
||||
* $tmp = explode(',', $ip);
|
||||
* $ip = trim($tmp[0]);
|
||||
* }
|
||||
* } else {
|
||||
* $ip = getenv("REMOTE_ADDR");
|
||||
* }
|
||||
* return $ip;
|
||||
* }
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="country", type="string", length=100, nullable=true)
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @see http://symfony.com/doc/current/components/http_foundation.html
|
||||
*
|
||||
* @ORM\Column(name="user_agent", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $userAgent;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set userName
|
||||
*
|
||||
* @param string $userName
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set ip
|
||||
*
|
||||
* @param string $ip
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setIp($ip)
|
||||
{
|
||||
$this->ip = $ip;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ip
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIp()
|
||||
{
|
||||
return $this->ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set country
|
||||
*
|
||||
* @param string $country
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get country
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set userAgent
|
||||
*
|
||||
* @param string $userAgent
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setUserAgent($userAgent)
|
||||
{
|
||||
$this->userAgent = $userAgent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userAgent
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserAgent()
|
||||
{
|
||||
return $this->userAgent;
|
||||
}
|
||||
}
|
||||
183
src/Mine/SeekerBundle/Entity/Gamer.php~
Normal file
183
src/Mine/SeekerBundle/Entity/Gamer.php~
Normal file
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Gamer
|
||||
*
|
||||
* @ORM\Table(name="gamer")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GamerRepository")
|
||||
*/
|
||||
class Gamer
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="user_name", type="string", length=100, nullable=false)
|
||||
*/
|
||||
private $userName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="ip", type="string", length=20, nullable=true)
|
||||
*/
|
||||
private $ip;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* $ip='0.0.0.0';
|
||||
* $ip=$_SERVER['REMOTE_ADDR'];
|
||||
* $clientDetails = json_decode(file_get_contents("http://ipinfo.io/$ip/json"));
|
||||
* echo "You're logged in from: <b>" . $clientDetails->country . "</b>";
|
||||
*
|
||||
* function GetIP()
|
||||
* {
|
||||
* if ( getenv("HTTP_CLIENT_IP") ) {
|
||||
* $ip = getenv("HTTP_CLIENT_IP");
|
||||
* } elseif ( getenv("HTTP_X_FORWARDED_FOR") ) {
|
||||
* $ip = getenv("HTTP_X_FORWARDED_FOR");
|
||||
* if ( strstr($ip, ',') ) {
|
||||
* $tmp = explode(',', $ip);
|
||||
* $ip = trim($tmp[0]);
|
||||
* }
|
||||
* } else {
|
||||
* $ip = getenv("REMOTE_ADDR");
|
||||
* }
|
||||
* return $ip;
|
||||
* }
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="country", type="string", length=100, nullable=true)
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @see http://symfony.com/doc/current/components/http_foundation.html
|
||||
*
|
||||
* @ORM\Column(name="user_agent", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $userAgent;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set userName
|
||||
*
|
||||
* @param string $userName
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set ip
|
||||
*
|
||||
* @param string $ip
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setIp($ip)
|
||||
{
|
||||
$this->ip = $ip;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ip
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIp()
|
||||
{
|
||||
return $this->ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set country
|
||||
*
|
||||
* @param string $country
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get country
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set userAgent
|
||||
*
|
||||
* @param string $userAgent
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function setUserAgent($userAgent)
|
||||
{
|
||||
$this->userAgent = $userAgent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userAgent
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserAgent()
|
||||
{
|
||||
return $this->userAgent;
|
||||
}
|
||||
}
|
||||
745
src/Mine/SeekerBundle/Entity/Grid.php
Normal file
745
src/Mine/SeekerBundle/Entity/Grid.php
Normal file
@@ -0,0 +1,745 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Grid
|
||||
*
|
||||
* @ORM\Table(name="grid")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridRepository")
|
||||
*/
|
||||
class Grid
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow0;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow1;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow2;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow3;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow4;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow5;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow6;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow7;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow8;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow9;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow10;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow11;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow12;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow13;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow14;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow15;
|
||||
|
||||
/**
|
||||
* @var PlayedGame
|
||||
*
|
||||
* @ORM\OneToOne(targetEntity="Mine\SeekerBundle\Entity\PlayedGame", inversedBy="grid")
|
||||
* @ORM\JoinColumn(name="played_game", referencedColumnName="id")
|
||||
*/
|
||||
private $playedGame;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->gridRow0 = new ArrayCollection();
|
||||
$this->gridRow1 = new ArrayCollection();
|
||||
$this->gridRow2 = new ArrayCollection();
|
||||
$this->gridRow3 = new ArrayCollection();
|
||||
$this->gridRow4 = new ArrayCollection();
|
||||
$this->gridRow5 = new ArrayCollection();
|
||||
$this->gridRow6 = new ArrayCollection();
|
||||
$this->gridRow7 = new ArrayCollection();
|
||||
$this->gridRow8 = new ArrayCollection();
|
||||
$this->gridRow9 = new ArrayCollection();
|
||||
$this->gridRow10 = new ArrayCollection();
|
||||
$this->gridRow11 = new ArrayCollection();
|
||||
$this->gridRow12 = new ArrayCollection();
|
||||
$this->gridRow13 = new ArrayCollection();
|
||||
$this->gridRow14 = new ArrayCollection();
|
||||
$this->gridRow15 = new ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow0
|
||||
*
|
||||
* @param GridCol $gridRow0
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow0(GridCol $gridRow0)
|
||||
{
|
||||
$this->gridRow0[] = $gridRow0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow0
|
||||
*
|
||||
* @param GridCol $gridRow0
|
||||
*/
|
||||
public function removeGridRow0(GridCol $gridRow0)
|
||||
{
|
||||
$this->gridRow0->removeElement($gridRow0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow0
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow0()
|
||||
{
|
||||
return $this->gridRow0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow1
|
||||
*
|
||||
* @param GridCol $gridRow1
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow1(GridCol $gridRow1)
|
||||
{
|
||||
$this->gridRow1[] = $gridRow1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow1
|
||||
*
|
||||
* @param GridCol $gridRow1
|
||||
*/
|
||||
public function removeGridRow1(GridCol $gridRow1)
|
||||
{
|
||||
$this->gridRow1->removeElement($gridRow1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow1
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow1()
|
||||
{
|
||||
return $this->gridRow1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow2
|
||||
*
|
||||
* @param GridCol $gridRow2
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow2(GridCol $gridRow2)
|
||||
{
|
||||
$this->gridRow2[] = $gridRow2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow2
|
||||
*
|
||||
* @param GridCol $gridRow2
|
||||
*/
|
||||
public function removeGridRow2(GridCol $gridRow2)
|
||||
{
|
||||
$this->gridRow2->removeElement($gridRow2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow2
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow2()
|
||||
{
|
||||
return $this->gridRow2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow3
|
||||
*
|
||||
* @param GridCol $gridRow3
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow3(GridCol $gridRow3)
|
||||
{
|
||||
$this->gridRow3[] = $gridRow3;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow3
|
||||
*
|
||||
* @param GridCol $gridRow3
|
||||
*/
|
||||
public function removeGridRow3(GridCol $gridRow3)
|
||||
{
|
||||
$this->gridRow3->removeElement($gridRow3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow3
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow3()
|
||||
{
|
||||
return $this->gridRow3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow4
|
||||
*
|
||||
* @param GridCol $gridRow4
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow4(GridCol $gridRow4)
|
||||
{
|
||||
$this->gridRow4[] = $gridRow4;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow4
|
||||
*
|
||||
* @param GridCol $gridRow4
|
||||
*/
|
||||
public function removeGridRow4(GridCol $gridRow4)
|
||||
{
|
||||
$this->gridRow4->removeElement($gridRow4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow4
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow4()
|
||||
{
|
||||
return $this->gridRow4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow5
|
||||
*
|
||||
* @param GridCol $gridRow5
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow5(GridCol $gridRow5)
|
||||
{
|
||||
$this->gridRow5[] = $gridRow5;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow5
|
||||
*
|
||||
* @param GridCol $gridRow5
|
||||
*/
|
||||
public function removeGridRow5(GridCol $gridRow5)
|
||||
{
|
||||
$this->gridRow5->removeElement($gridRow5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow5
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow5()
|
||||
{
|
||||
return $this->gridRow5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow6
|
||||
*
|
||||
* @param GridCol $gridRow6
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow6(GridCol $gridRow6)
|
||||
{
|
||||
$this->gridRow6[] = $gridRow6;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow6
|
||||
*
|
||||
* @param GridCol $gridRow6
|
||||
*/
|
||||
public function removeGridRow6(GridCol $gridRow6)
|
||||
{
|
||||
$this->gridRow6->removeElement($gridRow6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow6
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow6()
|
||||
{
|
||||
return $this->gridRow6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow7
|
||||
*
|
||||
* @param GridCol $gridRow7
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow7(GridCol $gridRow7)
|
||||
{
|
||||
$this->gridRow7[] = $gridRow7;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow7
|
||||
*
|
||||
* @param GridCol $gridRow7
|
||||
*/
|
||||
public function removeGridRow7(GridCol $gridRow7)
|
||||
{
|
||||
$this->gridRow7->removeElement($gridRow7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow7
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow7()
|
||||
{
|
||||
return $this->gridRow7;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow8
|
||||
*
|
||||
* @param GridCol $gridRow8
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow8(GridCol $gridRow8)
|
||||
{
|
||||
$this->gridRow8[] = $gridRow8;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow8
|
||||
*
|
||||
* @param GridCol $gridRow8
|
||||
*/
|
||||
public function removeGridRow8(GridCol $gridRow8)
|
||||
{
|
||||
$this->gridRow8->removeElement($gridRow8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow8
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow8()
|
||||
{
|
||||
return $this->gridRow8;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow9
|
||||
*
|
||||
* @param GridCol $gridRow9
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow9(GridCol $gridRow9)
|
||||
{
|
||||
$this->gridRow9[] = $gridRow9;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow9
|
||||
*
|
||||
* @param GridCol $gridRow9
|
||||
*/
|
||||
public function removeGridRow9(GridCol $gridRow9)
|
||||
{
|
||||
$this->gridRow9->removeElement($gridRow9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow9
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow9()
|
||||
{
|
||||
return $this->gridRow9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow10
|
||||
*
|
||||
* @param GridCol $gridRow10
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow10(GridCol $gridRow10)
|
||||
{
|
||||
$this->gridRow10[] = $gridRow10;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow10
|
||||
*
|
||||
* @param GridCol $gridRow10
|
||||
*/
|
||||
public function removeGridRow10(GridCol $gridRow10)
|
||||
{
|
||||
$this->gridRow10->removeElement($gridRow10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow10
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow10()
|
||||
{
|
||||
return $this->gridRow10;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow11
|
||||
*
|
||||
* @param GridCol $gridRow11
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow11(GridCol $gridRow11)
|
||||
{
|
||||
$this->gridRow11[] = $gridRow11;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow11
|
||||
*
|
||||
* @param GridCol $gridRow11
|
||||
*/
|
||||
public function removeGridRow11(GridCol $gridRow11)
|
||||
{
|
||||
$this->gridRow11->removeElement($gridRow11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow11
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow11()
|
||||
{
|
||||
return $this->gridRow11;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow12
|
||||
*
|
||||
* @param GridCol $gridRow12
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow12(GridCol $gridRow12)
|
||||
{
|
||||
$this->gridRow12[] = $gridRow12;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow12
|
||||
*
|
||||
* @param GridCol $gridRow12
|
||||
*/
|
||||
public function removeGridRow12(GridCol $gridRow12)
|
||||
{
|
||||
$this->gridRow12->removeElement($gridRow12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow12
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow12()
|
||||
{
|
||||
return $this->gridRow12;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow13
|
||||
*
|
||||
* @param GridCol $gridRow13
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow13(GridCol $gridRow13)
|
||||
{
|
||||
$this->gridRow13[] = $gridRow13;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow13
|
||||
*
|
||||
* @param GridCol $gridRow13
|
||||
*/
|
||||
public function removeGridRow13(GridCol $gridRow13)
|
||||
{
|
||||
$this->gridRow13->removeElement($gridRow13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow13
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow13()
|
||||
{
|
||||
return $this->gridRow13;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow14
|
||||
*
|
||||
* @param GridCol $gridRow14
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow14(GridCol $gridRow14)
|
||||
{
|
||||
$this->gridRow14[] = $gridRow14;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow14
|
||||
*
|
||||
* @param GridCol $gridRow14
|
||||
*/
|
||||
public function removeGridRow14(GridCol $gridRow14)
|
||||
{
|
||||
$this->gridRow14->removeElement($gridRow14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow14
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow14()
|
||||
{
|
||||
return $this->gridRow14;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow15
|
||||
*
|
||||
* @param GridCol $gridRow15
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow15(GridCol $gridRow15)
|
||||
{
|
||||
$this->gridRow15[] = $gridRow15;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow15
|
||||
*
|
||||
* @param GridCol $gridRow15
|
||||
*/
|
||||
public function removeGridRow15(GridCol $gridRow15)
|
||||
{
|
||||
$this->gridRow15->removeElement($gridRow15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow15
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow15()
|
||||
{
|
||||
return $this->gridRow15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set playedGame
|
||||
*
|
||||
* @param PlayedGame $playedGame
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function setPlayedGame(PlayedGame $playedGame = null)
|
||||
{
|
||||
$this->playedGame = $playedGame;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get playedGame
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function getPlayedGame()
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
}
|
||||
745
src/Mine/SeekerBundle/Entity/Grid.php~
Normal file
745
src/Mine/SeekerBundle/Entity/Grid.php~
Normal file
@@ -0,0 +1,745 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Grid
|
||||
*
|
||||
* @ORM\Table(name="grid")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridRepository")
|
||||
*/
|
||||
class Grid
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow0;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow1;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow2;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow3;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow4;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow5;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow6;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow7;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow8;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow9;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow10;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow11;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow12;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow13;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow14;
|
||||
|
||||
/**
|
||||
* @var GridCol
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridCol", mappedBy="gridRow")
|
||||
*/
|
||||
private $gridRow15;
|
||||
|
||||
/**
|
||||
* @var PlayedGame
|
||||
*
|
||||
* @ORM\OneToOne(targetEntity="Mine\SeekerBundle\Entity\PlayedGame", inversedBy="grid")
|
||||
* @ORM\JoinColumn(name="played_game", referencedColumnName="id")
|
||||
*/
|
||||
private $playedGame;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->gridRow0 = new ArrayCollection();
|
||||
$this->gridRow1 = new ArrayCollection();
|
||||
$this->gridRow2 = new ArrayCollection();
|
||||
$this->gridRow3 = new ArrayCollection();
|
||||
$this->gridRow4 = new ArrayCollection();
|
||||
$this->gridRow5 = new ArrayCollection();
|
||||
$this->gridRow6 = new ArrayCollection();
|
||||
$this->gridRow7 = new ArrayCollection();
|
||||
$this->gridRow8 = new ArrayCollection();
|
||||
$this->gridRow9 = new ArrayCollection();
|
||||
$this->gridRow10 = new ArrayCollection();
|
||||
$this->gridRow11 = new ArrayCollection();
|
||||
$this->gridRow12 = new ArrayCollection();
|
||||
$this->gridRow13 = new ArrayCollection();
|
||||
$this->gridRow14 = new ArrayCollection();
|
||||
$this->gridRow15 = new ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow0
|
||||
*
|
||||
* @param GridCol $gridRow0
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow0(GridCol $gridRow0)
|
||||
{
|
||||
$this->gridRow0[] = $gridRow0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow0
|
||||
*
|
||||
* @param GridCol $gridRow0
|
||||
*/
|
||||
public function removeGridRow0(GridCol $gridRow0)
|
||||
{
|
||||
$this->gridRow0->removeElement($gridRow0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow0
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow0()
|
||||
{
|
||||
return $this->gridRow0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow1
|
||||
*
|
||||
* @param GridCol $gridRow1
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow1(GridCol $gridRow1)
|
||||
{
|
||||
$this->gridRow1[] = $gridRow1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow1
|
||||
*
|
||||
* @param GridCol $gridRow1
|
||||
*/
|
||||
public function removeGridRow1(GridCol $gridRow1)
|
||||
{
|
||||
$this->gridRow1->removeElement($gridRow1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow1
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow1()
|
||||
{
|
||||
return $this->gridRow1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow2
|
||||
*
|
||||
* @param GridCol $gridRow2
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow2(GridCol $gridRow2)
|
||||
{
|
||||
$this->gridRow2[] = $gridRow2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow2
|
||||
*
|
||||
* @param GridCol $gridRow2
|
||||
*/
|
||||
public function removeGridRow2(GridCol $gridRow2)
|
||||
{
|
||||
$this->gridRow2->removeElement($gridRow2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow2
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow2()
|
||||
{
|
||||
return $this->gridRow2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow3
|
||||
*
|
||||
* @param GridCol $gridRow3
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow3(GridCol $gridRow3)
|
||||
{
|
||||
$this->gridRow3[] = $gridRow3;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow3
|
||||
*
|
||||
* @param GridCol $gridRow3
|
||||
*/
|
||||
public function removeGridRow3(GridCol $gridRow3)
|
||||
{
|
||||
$this->gridRow3->removeElement($gridRow3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow3
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow3()
|
||||
{
|
||||
return $this->gridRow3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow4
|
||||
*
|
||||
* @param GridCol $gridRow4
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow4(GridCol $gridRow4)
|
||||
{
|
||||
$this->gridRow4[] = $gridRow4;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow4
|
||||
*
|
||||
* @param GridCol $gridRow4
|
||||
*/
|
||||
public function removeGridRow4(GridCol $gridRow4)
|
||||
{
|
||||
$this->gridRow4->removeElement($gridRow4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow4
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow4()
|
||||
{
|
||||
return $this->gridRow4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow5
|
||||
*
|
||||
* @param GridCol $gridRow5
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow5(GridCol $gridRow5)
|
||||
{
|
||||
$this->gridRow5[] = $gridRow5;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow5
|
||||
*
|
||||
* @param GridCol $gridRow5
|
||||
*/
|
||||
public function removeGridRow5(GridCol $gridRow5)
|
||||
{
|
||||
$this->gridRow5->removeElement($gridRow5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow5
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow5()
|
||||
{
|
||||
return $this->gridRow5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow6
|
||||
*
|
||||
* @param GridCol $gridRow6
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow6(GridCol $gridRow6)
|
||||
{
|
||||
$this->gridRow6[] = $gridRow6;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow6
|
||||
*
|
||||
* @param GridCol $gridRow6
|
||||
*/
|
||||
public function removeGridRow6(GridCol $gridRow6)
|
||||
{
|
||||
$this->gridRow6->removeElement($gridRow6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow6
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow6()
|
||||
{
|
||||
return $this->gridRow6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow7
|
||||
*
|
||||
* @param GridCol $gridRow7
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow7(GridCol $gridRow7)
|
||||
{
|
||||
$this->gridRow7[] = $gridRow7;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow7
|
||||
*
|
||||
* @param GridCol $gridRow7
|
||||
*/
|
||||
public function removeGridRow7(GridCol $gridRow7)
|
||||
{
|
||||
$this->gridRow7->removeElement($gridRow7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow7
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow7()
|
||||
{
|
||||
return $this->gridRow7;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow8
|
||||
*
|
||||
* @param GridCol $gridRow8
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow8(GridCol $gridRow8)
|
||||
{
|
||||
$this->gridRow8[] = $gridRow8;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow8
|
||||
*
|
||||
* @param GridCol $gridRow8
|
||||
*/
|
||||
public function removeGridRow8(GridCol $gridRow8)
|
||||
{
|
||||
$this->gridRow8->removeElement($gridRow8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow8
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow8()
|
||||
{
|
||||
return $this->gridRow8;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow9
|
||||
*
|
||||
* @param GridCol $gridRow9
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow9(GridCol $gridRow9)
|
||||
{
|
||||
$this->gridRow9[] = $gridRow9;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow9
|
||||
*
|
||||
* @param GridCol $gridRow9
|
||||
*/
|
||||
public function removeGridRow9(GridCol $gridRow9)
|
||||
{
|
||||
$this->gridRow9->removeElement($gridRow9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow9
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow9()
|
||||
{
|
||||
return $this->gridRow9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow10
|
||||
*
|
||||
* @param GridCol $gridRow10
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow10(GridCol $gridRow10)
|
||||
{
|
||||
$this->gridRow10[] = $gridRow10;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow10
|
||||
*
|
||||
* @param GridCol $gridRow10
|
||||
*/
|
||||
public function removeGridRow10(GridCol $gridRow10)
|
||||
{
|
||||
$this->gridRow10->removeElement($gridRow10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow10
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow10()
|
||||
{
|
||||
return $this->gridRow10;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow11
|
||||
*
|
||||
* @param GridCol $gridRow11
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow11(GridCol $gridRow11)
|
||||
{
|
||||
$this->gridRow11[] = $gridRow11;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow11
|
||||
*
|
||||
* @param GridCol $gridRow11
|
||||
*/
|
||||
public function removeGridRow11(GridCol $gridRow11)
|
||||
{
|
||||
$this->gridRow11->removeElement($gridRow11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow11
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow11()
|
||||
{
|
||||
return $this->gridRow11;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow12
|
||||
*
|
||||
* @param GridCol $gridRow12
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow12(GridCol $gridRow12)
|
||||
{
|
||||
$this->gridRow12[] = $gridRow12;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow12
|
||||
*
|
||||
* @param GridCol $gridRow12
|
||||
*/
|
||||
public function removeGridRow12(GridCol $gridRow12)
|
||||
{
|
||||
$this->gridRow12->removeElement($gridRow12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow12
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow12()
|
||||
{
|
||||
return $this->gridRow12;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow13
|
||||
*
|
||||
* @param GridCol $gridRow13
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow13(GridCol $gridRow13)
|
||||
{
|
||||
$this->gridRow13[] = $gridRow13;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow13
|
||||
*
|
||||
* @param GridCol $gridRow13
|
||||
*/
|
||||
public function removeGridRow13(GridCol $gridRow13)
|
||||
{
|
||||
$this->gridRow13->removeElement($gridRow13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow13
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow13()
|
||||
{
|
||||
return $this->gridRow13;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow14
|
||||
*
|
||||
* @param GridCol $gridRow14
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow14(GridCol $gridRow14)
|
||||
{
|
||||
$this->gridRow14[] = $gridRow14;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow14
|
||||
*
|
||||
* @param GridCol $gridRow14
|
||||
*/
|
||||
public function removeGridRow14(GridCol $gridRow14)
|
||||
{
|
||||
$this->gridRow14->removeElement($gridRow14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow14
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow14()
|
||||
{
|
||||
return $this->gridRow14;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow15
|
||||
*
|
||||
* @param GridCol $gridRow15
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow15(GridCol $gridRow15)
|
||||
{
|
||||
$this->gridRow15[] = $gridRow15;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow15
|
||||
*
|
||||
* @param GridCol $gridRow15
|
||||
*/
|
||||
public function removeGridRow15(GridCol $gridRow15)
|
||||
{
|
||||
$this->gridRow15->removeElement($gridRow15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow15
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getGridRow15()
|
||||
{
|
||||
return $this->gridRow15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set playedGame
|
||||
*
|
||||
* @param PlayedGame $playedGame
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function setPlayedGame(PlayedGame $playedGame = null)
|
||||
{
|
||||
$this->playedGame = $playedGame;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get playedGame
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function getPlayedGame()
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
}
|
||||
561
src/Mine/SeekerBundle/Entity/GridCol.php
Normal file
561
src/Mine/SeekerBundle/Entity/GridCol.php
Normal file
@@ -0,0 +1,561 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* GridRow
|
||||
*
|
||||
* @ORM\Table(name="grid_row")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridRowRepository")
|
||||
*/
|
||||
class GridCol
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col0", type="integer", nullable=true)
|
||||
*/
|
||||
private $col0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col1", type="integer", nullable=true)
|
||||
*/
|
||||
private $col1;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col2", type="integer", nullable=true)
|
||||
*/
|
||||
private $col2;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col3", type="integer", nullable=true)
|
||||
*/
|
||||
private $col3;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col4", type="integer", nullable=true)
|
||||
*/
|
||||
private $col4;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col5", type="integer", nullable=true)
|
||||
*/
|
||||
private $col5;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col6", type="integer", nullable=true)
|
||||
*/
|
||||
private $col6;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col7", type="integer", nullable=true)
|
||||
*/
|
||||
private $col7;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col8", type="integer", nullable=true)
|
||||
*/
|
||||
private $col8;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col9", type="integer", nullable=true)
|
||||
*/
|
||||
private $col9;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col10", type="integer", nullable=true)
|
||||
*/
|
||||
private $col10;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col11", type="integer", nullable=true)
|
||||
*/
|
||||
private $col11;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col12", type="integer", nullable=true)
|
||||
*/
|
||||
private $col12;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col13", type="integer", nullable=true)
|
||||
*/
|
||||
private $col13;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col14", type="integer", nullable=true)
|
||||
*/
|
||||
private $col14;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col15", type="integer", nullable=true)
|
||||
*/
|
||||
private $col15;
|
||||
|
||||
/**
|
||||
* @var Grid
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Grid", inversedBy="gridRow")
|
||||
*/
|
||||
private $gridRow;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col0
|
||||
*
|
||||
* @param integer $col0
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol0($col0)
|
||||
{
|
||||
$this->col0 = $col0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col0
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol0()
|
||||
{
|
||||
return $this->col0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col1
|
||||
*
|
||||
* @param integer $col1
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol1($col1)
|
||||
{
|
||||
$this->col1 = $col1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col1
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol1()
|
||||
{
|
||||
return $this->col1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col2
|
||||
*
|
||||
* @param integer $col2
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol2($col2)
|
||||
{
|
||||
$this->col2 = $col2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col2
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol2()
|
||||
{
|
||||
return $this->col2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col3
|
||||
*
|
||||
* @param integer $col3
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol3($col3)
|
||||
{
|
||||
$this->col3 = $col3;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col3
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol3()
|
||||
{
|
||||
return $this->col3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col4
|
||||
*
|
||||
* @param integer $col4
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol4($col4)
|
||||
{
|
||||
$this->col4 = $col4;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col4
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol4()
|
||||
{
|
||||
return $this->col4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col5
|
||||
*
|
||||
* @param integer $col5
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol5($col5)
|
||||
{
|
||||
$this->col5 = $col5;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col5
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol5()
|
||||
{
|
||||
return $this->col5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col6
|
||||
*
|
||||
* @param integer $col6
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol6($col6)
|
||||
{
|
||||
$this->col6 = $col6;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col6
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol6()
|
||||
{
|
||||
return $this->col6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col7
|
||||
*
|
||||
* @param integer $col7
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol7($col7)
|
||||
{
|
||||
$this->col7 = $col7;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col7
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol7()
|
||||
{
|
||||
return $this->col7;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col8
|
||||
*
|
||||
* @param integer $col8
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol8($col8)
|
||||
{
|
||||
$this->col8 = $col8;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col8
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol8()
|
||||
{
|
||||
return $this->col8;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col9
|
||||
*
|
||||
* @param integer $col9
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol9($col9)
|
||||
{
|
||||
$this->col9 = $col9;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col9
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol9()
|
||||
{
|
||||
return $this->col9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col10
|
||||
*
|
||||
* @param integer $col10
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol10($col10)
|
||||
{
|
||||
$this->col10 = $col10;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col10
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol10()
|
||||
{
|
||||
return $this->col10;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col11
|
||||
*
|
||||
* @param integer $col11
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol11($col11)
|
||||
{
|
||||
$this->col11 = $col11;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col11
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol11()
|
||||
{
|
||||
return $this->col11;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col12
|
||||
*
|
||||
* @param integer $col12
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol12($col12)
|
||||
{
|
||||
$this->col12 = $col12;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col12
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol12()
|
||||
{
|
||||
return $this->col12;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col13
|
||||
*
|
||||
* @param integer $col13
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol13($col13)
|
||||
{
|
||||
$this->col13 = $col13;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col13
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol13()
|
||||
{
|
||||
return $this->col13;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col14
|
||||
*
|
||||
* @param integer $col14
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol14($col14)
|
||||
{
|
||||
$this->col14 = $col14;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col14
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol14()
|
||||
{
|
||||
return $this->col14;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col15
|
||||
*
|
||||
* @param integer $col15
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol15($col15)
|
||||
{
|
||||
$this->col15 = $col15;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col15
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol15()
|
||||
{
|
||||
return $this->col15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set gridRow
|
||||
*
|
||||
* @param Grid $gridRow
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setGridRow(Grid $gridRow = null)
|
||||
{
|
||||
$this->gridRow = $gridRow;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function getGridRow()
|
||||
{
|
||||
return $this->gridRow;
|
||||
}
|
||||
}
|
||||
561
src/Mine/SeekerBundle/Entity/GridCol.php~
Normal file
561
src/Mine/SeekerBundle/Entity/GridCol.php~
Normal file
@@ -0,0 +1,561 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* GridRow
|
||||
*
|
||||
* @ORM\Table(name="grid_row")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridRowRepository")
|
||||
*/
|
||||
class GridCol
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col0", type="integer", nullable=true)
|
||||
*/
|
||||
private $col0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col1", type="integer", nullable=true)
|
||||
*/
|
||||
private $col1;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col2", type="integer", nullable=true)
|
||||
*/
|
||||
private $col2;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col3", type="integer", nullable=true)
|
||||
*/
|
||||
private $col3;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col4", type="integer", nullable=true)
|
||||
*/
|
||||
private $col4;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col5", type="integer", nullable=true)
|
||||
*/
|
||||
private $col5;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col6", type="integer", nullable=true)
|
||||
*/
|
||||
private $col6;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col7", type="integer", nullable=true)
|
||||
*/
|
||||
private $col7;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col8", type="integer", nullable=true)
|
||||
*/
|
||||
private $col8;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col9", type="integer", nullable=true)
|
||||
*/
|
||||
private $col9;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col10", type="integer", nullable=true)
|
||||
*/
|
||||
private $col10;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col11", type="integer", nullable=true)
|
||||
*/
|
||||
private $col11;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col12", type="integer", nullable=true)
|
||||
*/
|
||||
private $col12;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col13", type="integer", nullable=true)
|
||||
*/
|
||||
private $col13;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col14", type="integer", nullable=true)
|
||||
*/
|
||||
private $col14;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col15", type="integer", nullable=true)
|
||||
*/
|
||||
private $col15;
|
||||
|
||||
/**
|
||||
* @var Grid
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Grid", inversedBy="gridRow")
|
||||
*/
|
||||
private $gridRow;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col0
|
||||
*
|
||||
* @param integer $col0
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol0($col0)
|
||||
{
|
||||
$this->col0 = $col0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col0
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol0()
|
||||
{
|
||||
return $this->col0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col1
|
||||
*
|
||||
* @param integer $col1
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol1($col1)
|
||||
{
|
||||
$this->col1 = $col1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col1
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol1()
|
||||
{
|
||||
return $this->col1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col2
|
||||
*
|
||||
* @param integer $col2
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol2($col2)
|
||||
{
|
||||
$this->col2 = $col2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col2
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol2()
|
||||
{
|
||||
return $this->col2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col3
|
||||
*
|
||||
* @param integer $col3
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol3($col3)
|
||||
{
|
||||
$this->col3 = $col3;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col3
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol3()
|
||||
{
|
||||
return $this->col3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col4
|
||||
*
|
||||
* @param integer $col4
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol4($col4)
|
||||
{
|
||||
$this->col4 = $col4;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col4
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol4()
|
||||
{
|
||||
return $this->col4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col5
|
||||
*
|
||||
* @param integer $col5
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol5($col5)
|
||||
{
|
||||
$this->col5 = $col5;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col5
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol5()
|
||||
{
|
||||
return $this->col5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col6
|
||||
*
|
||||
* @param integer $col6
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol6($col6)
|
||||
{
|
||||
$this->col6 = $col6;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col6
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol6()
|
||||
{
|
||||
return $this->col6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col7
|
||||
*
|
||||
* @param integer $col7
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol7($col7)
|
||||
{
|
||||
$this->col7 = $col7;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col7
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol7()
|
||||
{
|
||||
return $this->col7;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col8
|
||||
*
|
||||
* @param integer $col8
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol8($col8)
|
||||
{
|
||||
$this->col8 = $col8;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col8
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol8()
|
||||
{
|
||||
return $this->col8;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col9
|
||||
*
|
||||
* @param integer $col9
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol9($col9)
|
||||
{
|
||||
$this->col9 = $col9;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col9
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol9()
|
||||
{
|
||||
return $this->col9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col10
|
||||
*
|
||||
* @param integer $col10
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol10($col10)
|
||||
{
|
||||
$this->col10 = $col10;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col10
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol10()
|
||||
{
|
||||
return $this->col10;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col11
|
||||
*
|
||||
* @param integer $col11
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol11($col11)
|
||||
{
|
||||
$this->col11 = $col11;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col11
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol11()
|
||||
{
|
||||
return $this->col11;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col12
|
||||
*
|
||||
* @param integer $col12
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol12($col12)
|
||||
{
|
||||
$this->col12 = $col12;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col12
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol12()
|
||||
{
|
||||
return $this->col12;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col13
|
||||
*
|
||||
* @param integer $col13
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol13($col13)
|
||||
{
|
||||
$this->col13 = $col13;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col13
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol13()
|
||||
{
|
||||
return $this->col13;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col14
|
||||
*
|
||||
* @param integer $col14
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol14($col14)
|
||||
{
|
||||
$this->col14 = $col14;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col14
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol14()
|
||||
{
|
||||
return $this->col14;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col15
|
||||
*
|
||||
* @param integer $col15
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setCol15($col15)
|
||||
{
|
||||
$this->col15 = $col15;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col15
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol15()
|
||||
{
|
||||
return $this->col15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set gridRow
|
||||
*
|
||||
* @param Grid $gridRow
|
||||
*
|
||||
* @return GridCol
|
||||
*/
|
||||
public function setGridRow(Grid $gridRow = null)
|
||||
{
|
||||
$this->gridRow = $gridRow;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function getGridRow()
|
||||
{
|
||||
return $this->gridRow;
|
||||
}
|
||||
}
|
||||
367
src/Mine/SeekerBundle/Entity/PlayedGame.php
Normal file
367
src/Mine/SeekerBundle/Entity/PlayedGame.php
Normal file
@@ -0,0 +1,367 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Jotunheimr\UserBundle\Entity\User;
|
||||
|
||||
/**
|
||||
* PlayedGame
|
||||
*
|
||||
* @ORM\Table(name="played_game")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\PlayedGameRepository")
|
||||
*/
|
||||
class PlayedGame
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var Grid
|
||||
*
|
||||
* @ORM\OneToOne(targetEntity="Mine\SeekerBundle\Entity\Grid", mappedBy="playedGame")
|
||||
*/
|
||||
private $grid;
|
||||
|
||||
/**
|
||||
* @var User
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Jotunheimr\UserBundle\Entity\User")
|
||||
* @ORM\JoinColumn(name="red_id", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $red;
|
||||
|
||||
/**
|
||||
* @var Gamer
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Gamer")
|
||||
* @ORM\JoinColumn(name="red_anon", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $redAnon;
|
||||
|
||||
/**
|
||||
* @var User
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Jotunheimr\UserBundle\Entity\User")
|
||||
* @ORM\JoinColumn(name="blue_id", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $blue;
|
||||
|
||||
/**
|
||||
* @var Gamer
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Gamer")
|
||||
* @ORM\JoinColumn(name="blue_anon", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $blueAnon;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="red_points", type="integer", length=5, nullable=true)
|
||||
*/
|
||||
private $redPoints;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="blue_points", type="integer", length=5, nullable=true)
|
||||
*/
|
||||
private $bluePoints;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="red_has_bomb", nullable=true)
|
||||
*/
|
||||
private $redHasBomb;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="blue_has_bomb", nullable=true)
|
||||
*/
|
||||
private $blueHasBomb;
|
||||
|
||||
/**
|
||||
* @var Step
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\Step", mappedBy="playedGame")
|
||||
*/
|
||||
private $step;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->step = new ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set redPoints
|
||||
*
|
||||
* @param integer $redPoints
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRedPoints($redPoints)
|
||||
{
|
||||
$this->redPoints = $redPoints;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get redPoints
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRedPoints()
|
||||
{
|
||||
return $this->redPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set bluePoints
|
||||
*
|
||||
* @param integer $bluePoints
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBluePoints($bluePoints)
|
||||
{
|
||||
$this->bluePoints = $bluePoints;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bluePoints
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getBluePoints()
|
||||
{
|
||||
return $this->bluePoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set redHasBomb
|
||||
*
|
||||
* @param string $redHasBomb
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRedHasBomb($redHasBomb)
|
||||
{
|
||||
$this->redHasBomb = $redHasBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get redHasBomb
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRedHasBomb()
|
||||
{
|
||||
return $this->redHasBomb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set blueHasBomb
|
||||
*
|
||||
* @param string $blueHasBomb
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBlueHasBomb($blueHasBomb)
|
||||
{
|
||||
$this->blueHasBomb = $blueHasBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blueHasBomb
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBlueHasBomb()
|
||||
{
|
||||
return $this->blueHasBomb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set grid
|
||||
*
|
||||
* @param Grid $grid
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setGrid(Grid $grid = null)
|
||||
{
|
||||
$this->grid = $grid;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get grid
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function getGrid()
|
||||
{
|
||||
return $this->grid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set red
|
||||
*
|
||||
* @param User $red
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRed(User $red = null)
|
||||
{
|
||||
$this->red = $red;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get red
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function getRed()
|
||||
{
|
||||
return $this->red;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set blue
|
||||
*
|
||||
* @param User $blue
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBlue(User $blue = null)
|
||||
{
|
||||
$this->blue = $blue;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blue
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function getBlue()
|
||||
{
|
||||
return $this->blue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add step
|
||||
*
|
||||
* @param \Mine\SeekerBundle\Entity\Step $step
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function addStep(\Mine\SeekerBundle\Entity\Step $step)
|
||||
{
|
||||
$this->step[] = $step;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove step
|
||||
*
|
||||
* @param \Mine\SeekerBundle\Entity\Step $step
|
||||
*/
|
||||
public function removeStep(\Mine\SeekerBundle\Entity\Step $step)
|
||||
{
|
||||
$this->step->removeElement($step);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get step
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getStep()
|
||||
{
|
||||
return $this->step;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set redAnon
|
||||
*
|
||||
* @param Gamer $redAnon
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRedAnon(Gamer $redAnon = null)
|
||||
{
|
||||
$this->redAnon = $redAnon;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get redAnon
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function getRedAnon()
|
||||
{
|
||||
return $this->redAnon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set blueAnon
|
||||
*
|
||||
* @param Gamer $blueAnon
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBlueAnon(Gamer $blueAnon = null)
|
||||
{
|
||||
$this->blueAnon = $blueAnon;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blueAnon
|
||||
*
|
||||
* @return Gamer
|
||||
*/
|
||||
public function getBlueAnon()
|
||||
{
|
||||
return $this->blueAnon;
|
||||
}
|
||||
}
|
||||
318
src/Mine/SeekerBundle/Entity/PlayedGame.php~
Normal file
318
src/Mine/SeekerBundle/Entity/PlayedGame.php~
Normal file
@@ -0,0 +1,318 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* PlayedGame
|
||||
*
|
||||
* @ORM\Table(name="played_game")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\PlayedGameRepository")
|
||||
*/
|
||||
class PlayedGame
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var Grid
|
||||
*
|
||||
* @ORM\OneToOne(targetEntity="Mine\SeekerBundle\Entity\Grid", mappedBy="playedGame")
|
||||
*/
|
||||
private $grid;
|
||||
|
||||
/**
|
||||
* @var \Jotunheimr\UserBundle\Entity\User
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Jotunheimr\UserBundle\Entity\User")
|
||||
* @ORM\JoinColumn(name="red_id", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $red;
|
||||
|
||||
/**
|
||||
* @var Gamer
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Gamer")
|
||||
* @ORM\JoinColumn(name="red_anon", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $redAnon;
|
||||
|
||||
/**
|
||||
* @var \Jotunheimr\UserBundle\Entity\User
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Jotunheimr\UserBundle\Entity\User")
|
||||
* @ORM\JoinColumn(name="blue_id", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $blue;
|
||||
|
||||
/**
|
||||
* @var Gamer
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\Gamer")
|
||||
* @ORM\JoinColumn(name="blue_anon", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private $blueAnon;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="red_points", type="integer", length=5, nullable=true)
|
||||
*/
|
||||
private $redPoints;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="blue_points", type="integer", length=5, nullable=true)
|
||||
*/
|
||||
private $bluePoints;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="red_has_bomb", nullable=true)
|
||||
*/
|
||||
private $redHasBomb;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="blue_has_bomb", nullable=true)
|
||||
*/
|
||||
private $blueHasBomb;
|
||||
|
||||
/**
|
||||
* @var Step
|
||||
*
|
||||
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\Step", mappedBy="playedGame")
|
||||
*/
|
||||
private $step;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->step = new ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set redPoints
|
||||
*
|
||||
* @param integer $redPoints
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRedPoints($redPoints)
|
||||
{
|
||||
$this->redPoints = $redPoints;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get redPoints
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRedPoints()
|
||||
{
|
||||
return $this->redPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set bluePoints
|
||||
*
|
||||
* @param integer $bluePoints
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBluePoints($bluePoints)
|
||||
{
|
||||
$this->bluePoints = $bluePoints;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bluePoints
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getBluePoints()
|
||||
{
|
||||
return $this->bluePoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set redHasBomb
|
||||
*
|
||||
* @param string $redHasBomb
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRedHasBomb($redHasBomb)
|
||||
{
|
||||
$this->redHasBomb = $redHasBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get redHasBomb
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRedHasBomb()
|
||||
{
|
||||
return $this->redHasBomb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set blueHasBomb
|
||||
*
|
||||
* @param string $blueHasBomb
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBlueHasBomb($blueHasBomb)
|
||||
{
|
||||
$this->blueHasBomb = $blueHasBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blueHasBomb
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBlueHasBomb()
|
||||
{
|
||||
return $this->blueHasBomb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set grid
|
||||
*
|
||||
* @param \Mine\SeekerBundle\Entity\Grid $grid
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setGrid(\Mine\SeekerBundle\Entity\Grid $grid = null)
|
||||
{
|
||||
$this->grid = $grid;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get grid
|
||||
*
|
||||
* @return \Mine\SeekerBundle\Entity\Grid
|
||||
*/
|
||||
public function getGrid()
|
||||
{
|
||||
return $this->grid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set red
|
||||
*
|
||||
* @param \Jotunheimr\UserBundle\Entity\User $red
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setRed(\Jotunheimr\UserBundle\Entity\User $red = null)
|
||||
{
|
||||
$this->red = $red;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get red
|
||||
*
|
||||
* @return \Jotunheimr\UserBundle\Entity\User
|
||||
*/
|
||||
public function getRed()
|
||||
{
|
||||
return $this->red;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set blue
|
||||
*
|
||||
* @param \Jotunheimr\UserBundle\Entity\User $blue
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function setBlue(\Jotunheimr\UserBundle\Entity\User $blue = null)
|
||||
{
|
||||
$this->blue = $blue;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blue
|
||||
*
|
||||
* @return \Jotunheimr\UserBundle\Entity\User
|
||||
*/
|
||||
public function getBlue()
|
||||
{
|
||||
return $this->blue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add step
|
||||
*
|
||||
* @param \Mine\SeekerBundle\Entity\Step $step
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function addStep(\Mine\SeekerBundle\Entity\Step $step)
|
||||
{
|
||||
$this->step[] = $step;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove step
|
||||
*
|
||||
* @param \Mine\SeekerBundle\Entity\Step $step
|
||||
*/
|
||||
public function removeStep(\Mine\SeekerBundle\Entity\Step $step)
|
||||
{
|
||||
$this->step->removeElement($step);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get step
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getStep()
|
||||
{
|
||||
return $this->step;
|
||||
}
|
||||
}
|
||||
158
src/Mine/SeekerBundle/Entity/Step.php
Normal file
158
src/Mine/SeekerBundle/Entity/Step.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Step
|
||||
*
|
||||
* @ORM\Table(name="step")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\StepRepository")
|
||||
*/
|
||||
class Step
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="row", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $row;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $col;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="wbomb", type="boolean", nullable=true)
|
||||
*/
|
||||
private $wBomb;
|
||||
|
||||
/**
|
||||
* @var PlayedGame
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\PlayedGame", inversedBy="step")
|
||||
*/
|
||||
private $playedGame;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set playedGame
|
||||
*
|
||||
* @param PlayedGame $playedGame
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setPlayedGame(PlayedGame $playedGame = null)
|
||||
{
|
||||
$this->playedGame = $playedGame;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get playedGame
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function getPlayedGame()
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set row
|
||||
*
|
||||
* @param integer $row
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setRow($row)
|
||||
{
|
||||
$this->row = $row;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get row
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRow()
|
||||
{
|
||||
return $this->row;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col
|
||||
*
|
||||
* @param integer $col
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setCol($col)
|
||||
{
|
||||
$this->col = $col;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol()
|
||||
{
|
||||
return $this->col;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set wBomb
|
||||
*
|
||||
* @param boolean $wBomb
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setWBomb($wBomb)
|
||||
{
|
||||
$this->wBomb = $wBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get wBomb
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getWBomb()
|
||||
{
|
||||
return $this->wBomb;
|
||||
}
|
||||
}
|
||||
158
src/Mine/SeekerBundle/Entity/Step.php~
Normal file
158
src/Mine/SeekerBundle/Entity/Step.php~
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Step
|
||||
*
|
||||
* @ORM\Table(name="step")
|
||||
* @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\StepRepository")
|
||||
*/
|
||||
class Step
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="row", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $row;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="col", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $col;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="wbomb", type="boolean", nullable=true)
|
||||
*/
|
||||
private $wBomb;
|
||||
|
||||
/**
|
||||
* @var PlayedGame
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\PlayedGame", inversedBy="step")
|
||||
*/
|
||||
private $playedGame;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set playedGame
|
||||
*
|
||||
* @param PlayedGame $playedGame
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setPlayedGame(PlayedGame $playedGame = null)
|
||||
{
|
||||
$this->playedGame = $playedGame;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get playedGame
|
||||
*
|
||||
* @return PlayedGame
|
||||
*/
|
||||
public function getPlayedGame()
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set row
|
||||
*
|
||||
* @param integer $row
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setRow($row)
|
||||
{
|
||||
$this->row = $row;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get row
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRow()
|
||||
{
|
||||
return $this->row;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set col
|
||||
*
|
||||
* @param integer $col
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setCol($col)
|
||||
{
|
||||
$this->col = $col;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get col
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCol()
|
||||
{
|
||||
return $this->col;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set wBomb
|
||||
*
|
||||
* @param boolean $wBomb
|
||||
*
|
||||
* @return Step
|
||||
*/
|
||||
public function setWBomb($wBomb)
|
||||
{
|
||||
$this->wBomb = $wBomb;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get wBomb
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getWBomb()
|
||||
{
|
||||
return $this->wBomb;
|
||||
}
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/GamerRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/GamerRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* GamerRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class GamerRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/GridColRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/GridColRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* GridRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class GridColRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/GridRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/GridRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* GridRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class GridRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/GridRowRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/GridRowRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* GridRowRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class GridRowRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/PlayedGameRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/PlayedGameRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* PlayedGameRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class PlayedGameRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
13
src/Mine/SeekerBundle/Repository/StepRepository.php
Normal file
13
src/Mine/SeekerBundle/Repository/StepRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Mine\SeekerBundle\Repository;
|
||||
|
||||
/**
|
||||
* StepRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class StepRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user