Skip to content

Instantly share code, notes, and snippets.

@grekpg
Created November 25, 2013 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grekpg/7643970 to your computer and use it in GitHub Desktop.
Save grekpg/7643970 to your computer and use it in GitHub Desktop.
<?php
// src/Miejsce/UserBundle/Entity/User.php
namespace Miejsce\UserBundle\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