Private
Public Access
1
0

bugfix grid row in entity

This commit is contained in:
2016-11-14 20:02:54 +01:00
parent b6076d082b
commit 1a4b81092a

View File

@@ -30,7 +30,7 @@ class Grid
private $playedGame; private $playedGame;
/** /**
* @var GridCol * @var GridRow
* *
* @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridRow", mappedBy="grid", cascade={"persist"}) * @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridRow", mappedBy="grid", cascade={"persist"})
* @ORM\JoinColumn(name="grid_row", referencedColumnName="id", onDelete="CASCADE") * @ORM\JoinColumn(name="grid_row", referencedColumnName="id", onDelete="CASCADE")
@@ -78,38 +78,4 @@ class Grid
{ {
return $this->playedGame; 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;
}
} }