for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VideoGamesRecords\DwhBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Game
*
* @ORM\Table(name="dwh_game")
* @ORM\Entity(repositoryClass="VideoGamesRecords\DwhBundle\Repository\GameRepository")
*/
class Game
{
* @var integer
* @ORM\Column(name="id", type="integer")
* @ORM\Id
private $id;
* @var string
* @ORM\Column(name="date", type="string", length=10, nullable=false)
private $date;
* @ORM\Column(name="nbPost", type="integer", nullable=false, options={"default":0})
private $nbPost = 0;
* @ORM\Column(name="nbPostDay", type="integer", nullable=false)
private $nbPostDay = 0;
* @return string
public function __toString()
return sprintf('%s [%s]', $this->id, $this->id);
}
* Set id
* @param integer $id
* @return Game
public function setId(int $id)
$this->id = $id;
return $this;
* Get id
* @return integer
public function getId()
return $this->id;
* Set date
* @param string $date
public function setDate(string $date)
$this->date = $date;
* Get date
public function getDate()
return $this->date;
* Set nbPost
* @param integer $nbPost
public function setNbPost(int $nbPost)
$this->nbPost = $nbPost;
* Get nbPost
public function getNbPost()
return $this->nbPost;
* Set nbPostDay
* @param integer $nbPostDay
public function setNbPostDay(int $nbPostDay)
$this->nbPostDay = $nbPostDay;
* Get nbPostDay
public function getNbPostDay()
return $this->nbPostDay;
* @param array $row
public function setFromArray(array $row)
foreach ($row as $key => $value) {
$this->$key = $value;