Extending Sonata User Bundle and adding new fields [closed]
1. Create a new bundle Something like AcmeUserBundle. Create it and register it as you do normally. 2. Create a new User entity Then create a User and Group entity which extends Sonata\UserBundle\Entity\BaseUser and Sonata\UserBundle\Entity\BaseGroup. You should also add the configuration for the primary key, for instance: /** * @ORM\Entity * @ORM\Table(name=”fos_user”) */ class User … Read more