Private
Public Access
1
0

create first working communication

This commit is contained in:
2016-10-25 11:19:50 +02:00
parent 23f034bc1c
commit 5b4fdd088c
27 changed files with 1037 additions and 2546 deletions

View File

@@ -22,701 +22,37 @@ class Grid
*/
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")
* @ORM\OneToOne(targetEntity="Mine\SeekerBundle\Entity\PlayedGame", inversedBy="grid", cascade={"persist"})
*/
private $playedGame;
/**
* Get id
* @var GridCol
*
* @return int
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridRow", mappedBy="grid", cascade={"persist"})
* @ORM\JoinColumn(name="grid_row", referencedColumnName="id", onDelete="CASCADE")
*/
public function getId()
{
return $this->id;
}
private $gridRow;
/**
* 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();
$this->gridRow = new ArrayCollection();
}
/**
* Add gridRow0
* Get id
*
* @param GridCol $gridRow0
*
* @return Grid
* @return integer
*/
public function addGridRow0(GridCol $gridRow0)
public function getId()
{
$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;
return $this->id;
}
/**
@@ -742,4 +78,38 @@ class Grid
{
return $this->playedGame;
}
/**
* Add gridRow
*
* @param GridCol $gridRow
*
* @return Grid
*/
public function addGridRow(GridCol $gridRow)
{
$this->gridRow[] = $gridRow;
return $this;
}
/**
* Remove gridRow
*
* @param GridCol $gridRow
*/
public function removeGridRow(GridCol $gridRow)
{
$this->gridRow->removeElement($gridRow);
}
/**
* Get gridRow
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getGridRow()
{
return $this->gridRow;
}
}