I have SonataUserBundle installed in src/Application/Sonata/Userbundle with the command:
php app/console sonata:easy-extends:generate SonataUserBundle -d src
Now I want to extend it, what I need to do for the best:
- Create a new Entity in the namespace AppBundle/Entity which extends BaseUser class (use Sonata\UserBundle\Entity\BaseUser as BaseUser;) and set it in config.yml as "user_class: AppBundle\Entity\User"
OR
- I need to just edit the src/Application/Sonata/UserBundle/Entity/User.php with the new fields I need to add for the users in the admin panel.
Thanks !!!