Skip to content

Instantly share code, notes, and snippets.

@cmdr-rohit-bang
Created June 25, 2022 08:49
Show Gist options
  • Save cmdr-rohit-bang/9596e0ef1348f44b434066ff10d8a512 to your computer and use it in GitHub Desktop.
Save cmdr-rohit-bang/9596e0ef1348f44b434066ff10d8a512 to your computer and use it in GitHub Desktop.
/src/Entity/User.php
<?php
// src/Entity/User.php
namespace App\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