Questions tagged [sonata-user-bundle]

Integrates the `FOS/UserBundle` in the Sonata Admin Project to add some features related to the users.

Integrates the FOS/UserBundle in the Sonata Admin Project and adds some features:

  • AdminBundle: add user and group management
  • EasyExtends: allows to generate Application level model
  • Features: User profile dashboard, user profile menu, Google Authenticator support (optional), …

The roles to be assigned to users are splitted in 2 parts:

  • editable: the roles the current user is allowed to assign to other users

(permission or role MASTER)

  • readonly: the roles assigned to the current user, however the current

user is only allowed to see them

When using ACL, the UserBundle prevents normal user to change settings of super-admin users.

To find more information :

244 questions
0
votes
1 answer

symfony sonata admin roles on embedded onetomany entities

I have Symfony 2.3 + Sonata Admin + Sonata User Bundle. I have created an entity Student, and another entity Contact. An Student have one-to-many relationship with Contact. I have added Contact to Student with sonata_type_collection in my…
0
votes
1 answer

Unable to override Sonata User Bundle registration form

I keep getting an error while trying to override sonata registration template. I extended Sonata User Bundle with EasyExtendsBundle, so I now have src/Application/Sonata/UserBundle. EDIT: Symfony 2.7, Sonata Admin 2.3, Sonata User dev-master I added…
sylzys
  • 167
  • 1
  • 2
  • 14
0
votes
1 answer

SonataUserBundle override user profile

i want to override my user dashboard [profile show.html.twig], but i don't know how to do it. Someone can explain me or show me his code, so i can have an idea how he did it. this is my show.html.twig: {% extends…
Dario
  • 103
  • 1
  • 2
  • 9
0
votes
1 answer

Split Sonata User Bundle registration form into stages

I'm currently working on a user registration form for a site I'm working on. The site requires a lot of information about users up front, and I'd like to break it down into stages. The first stage requires the user to put in an identifier in the…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
0
votes
1 answer

New fields not persisted in database after overriding FormType when register a new user

I am overriding the form type to register a user. All looks ok, but when I submit my form the new fields are not persisted in database. I followed the documentation. My ProfileType:
Vincent Moulene
  • 1,193
  • 2
  • 15
  • 28
0
votes
1 answer

How to remove fields from the admin user create page of Sonata User Bundle?

I have installed Sonata Admin Bundle and User Bundle in my Symfony 2.6 application. I found that the User bundle creates a bundle at src/Application/Sonata/UserBundle. When I go to the admin user creation page (admin/sonata/user/user/create), I…
Sithu
  • 4,752
  • 9
  • 64
  • 110
0
votes
1 answer

SONATA USER BUNDLE/FOS USER BUNDLE

It's my first time with this Bundle. I have a little problem to display correctly the side to register someone. In fact, the layout is duplicate. I don't know why. I spent lot of time but I have not the answer at the moment. I join a picture to…
Vincent Moulene
  • 1,193
  • 2
  • 15
  • 28
0
votes
1 answer

Sonata user bundle group roles

I have set up sonata user bundle with sonata admin. Now I have user groups that have some roles. I created an "admin" group and assigned ROLE_ADMIN. Now if i create a user and assign him to this admin group I try to log out and login in admin panel…
AdamZ
  • 1,901
  • 1
  • 12
  • 9
0
votes
1 answer

Override FOSUserBundle Cotroller

I can't override ResettingController of FOSUser. ProfileController and RegistrationController work, but ResettingController not. AppBundle.php: namespace AppBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class AppBundle extends Bundle { …
Bender21
  • 11
  • 3
0
votes
1 answer

intagrate fosUserBundle`s table in Sonata

I used FOSUserBundle and now install SonataAdmin and want to intagrate their. I find SonataUserBundle and now, when I installed bundle, I have problem with MySQL, i have table 'fos_user', but now, SonataUser try to find 'sonata_user_user' table. can…
0
votes
0 answers

Could not load type "sonata_user_registration"

When i try override the registration form in SonataUserBundle i got this error : "Could not load type "sonata_user_registration"".I searched the solution of this problem but any of them doesn't help me. I successfully override template but now, I…
YuriiChmil
  • 441
  • 1
  • 5
  • 18
0
votes
4 answers

SonataBlock, SonataAdmin and Other Sonata bundles keep showing "Validation" error

Compile Error: Declaration of Sonata\FormatterBundle\Block\FormatterBlockService::validateBlock() must be compatible with Sonata\BlockBundle\Block\BlockAdminServiceInterface::validateBlock(Sonata\CoreBundle\Validator\ErrorElement $errorElement,…
Tigin
  • 391
  • 5
  • 19
0
votes
1 answer

Override SonataUserBundle in app/Resources

I try to follow Symfony best practices and put the templates in app/Resources/views, but I can't make it work for SonataUserBundle templates. My AppBundle inherits SonataUserBundle. If I put the template…
Schyzophrenic
  • 131
  • 1
  • 9
0
votes
1 answer

Symfony2.6 , SonataUserBundle , Attempted to call method "setCurrentUri" on class "Knp\Menu\MenuItem".

I am currently using SonataUserBundle and when I try to load /profile/ page , I get the following error : Attempted to call method "setCurrentUri" on class "Knp\Menu\MenuItem". I have seen on several posts that many people solved this error by…
Steven
  • 313
  • 3
  • 10
0
votes
2 answers

FOSUserBundle, SonataUserBundle override registration

I have managed to override the template and the form for the registration page but one thing I have noticed is that the initial fields are being injected. Here is my buildform Code: public function buildForm(FormBuilderInterface $builder, array…
AntonioCS
  • 8,335
  • 18
  • 63
  • 92