35 lines
501 B
PHP
35 lines
501 B
PHP
|
<?php
|
||
|
|
||
|
namespace AppBundle\Entity;
|
||
|
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
use FOS\UserBundle\Model\User as BaseUser;
|
||
|
|
||
|
/**
|
||
|
* User
|
||
|
*
|
||
|
* @ORM\Table(name="custom_user")
|
||
|
* @ORM\Entity(repositoryClass="AppBundle\Repository\UserRepository")
|
||
|
*/
|
||
|
class User extends BaseUser {
|
||
|
/**
|
||
|
* @var int
|
||
|
*
|
||
|
* @ORM\Column(name="id", type="integer")
|
||
|
* @ORM\Id
|
||
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||
|
*/
|
||
|
protected $id;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Get id
|
||
|
*
|
||
|
* @return int
|
||
|
*/
|
||
|
public function getId() {
|
||
|
return $this->id;
|
||
|
}
|
||
|
}
|
||
|
|