Skip to content

Instantly share code, notes, and snippets.

@helios-ag
Created July 11, 2015 15:46
Show Gist options
  • Save helios-ag/67fc2b8a7ea093266154 to your computer and use it in GitHub Desktop.
Save helios-ag/67fc2b8a7ea093266154 to your computer and use it in GitHub Desktop.
User.php
<?php
namespace AppBundle\Entity;
use FOS\UserBundle\Model\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="fos_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
public function __construct()
{
parent::__construct();
// your own logic
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment