Skip to content

Instantly share code, notes, and snippets.

@neok
Created November 15, 2015 15:54
Show Gist options
  • Save neok/393d077162c73e64bd2b to your computer and use it in GitHub Desktop.
Save neok/393d077162c73e64bd2b to your computer and use it in GitHub Desktop.
<?php
namespace Acme\ApiBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table("users")
* @ORM\Entity
*/
class User extends BaseUser
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment