bugfix entities gridrow, grid && improve graph design on homepage
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
@@ -78,4 +79,38 @@ class Grid
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow
|
||||
*
|
||||
* @param GridRow $gridRow
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow(GridRow $gridRow)
|
||||
{
|
||||
$this->gridRow[] = $gridRow;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow
|
||||
*
|
||||
* @param GridRow $gridRow
|
||||
*/
|
||||
public function removeGridRow(GridRow $gridRow)
|
||||
{
|
||||
$this->gridRow->removeElement($gridRow);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getGridRow()
|
||||
{
|
||||
return $this->gridRow;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user