for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace 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;