for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrl\AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class User
* @package AppBundle\Entity
*
* @ORM\Entity
* @ORM\Table(name="user")
*/
class User
{
* @return mixed
public function getId()
return $this->id;
}
* @param mixed $id
* @return User
public function setId($id)
$this->id = $id;
return $this;
* @return int
public function getChatId()
return $this->chatId;
* @param int $chatId
public function setChatId($chatId)
$this->chatId = $chatId;
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @var integer
* @ORM\Column(name="chat_id", type="bigint", nullable=false)
protected $chatId;
* @var string
* @ORM\Column(name="name", type="text")
protected $name;
* @ORM\Column(name="points", type="bigint")
protected $points;
* @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\Game", inversedBy="users")
public $gameId;