From 1a4b81092a1107b971e80ebbce399f5461cd1dcd Mon Sep 17 00:00:00 2001 From: Lang Date: Mon, 14 Nov 2016 20:02:54 +0100 Subject: [PATCH] bugfix grid row in entity --- src/Mine/SeekerBundle/Entity/Grid.php | 36 +-------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/src/Mine/SeekerBundle/Entity/Grid.php b/src/Mine/SeekerBundle/Entity/Grid.php index ec78618..a47b1a8 100644 --- a/src/Mine/SeekerBundle/Entity/Grid.php +++ b/src/Mine/SeekerBundle/Entity/Grid.php @@ -30,7 +30,7 @@ class Grid private $playedGame; /** - * @var GridCol + * @var GridRow * * @ORM\OneToMany(targetEntity="Mine\SeekerBundle\Entity\GridRow", mappedBy="grid", cascade={"persist"}) * @ORM\JoinColumn(name="grid_row", referencedColumnName="id", onDelete="CASCADE") @@ -78,38 +78,4 @@ 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; - } }