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
1
vote
1 answer

Sonata User Bundle error on profile edit

I configure a symfony 2.7 installation with the lasted sonata admin and sonata user bundles. My backend work well, also work /profile page, but I'm getting this error in /profile/edit-profile and /profile/edit-authentication : Unable to find…
abdiel
  • 2,078
  • 16
  • 24
1
vote
2 answers

Sonata User Bundle configuration error

I try to install Sonata User Bundle but I have a problem on configuration when I execute the command app/console sonata:easy-extends:generate SonataUserBundle -d src The git bash show this error : …
1
vote
0 answers

Extending SonataUserBundle installed with easy-extends best practice

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…
eXtreme
  • 244
  • 3
  • 18
1
vote
1 answer

How to change the default bootstrap menu icon of sonata adminBundle

Is there a way to change the default bootstrap menu icon of sonata adminBundle in .yml config ?
1
vote
0 answers

Which Templates Symfony using after Integrating Sonata User Bundle with FOS

Begineer to Symfony, On my first app i used FOS User Bundle for login and registration. and also override it's templetes in app/Resources directory. It was working well. Then I integrate Sonata User admin Bundle using this tutorial. Now when I go to…
Muhammad Taqi
  • 5,356
  • 7
  • 36
  • 61
1
vote
0 answers

fosrestBundle and SonataUserBundle new fields serilalisation

i'm using the SonataUserBundle extended under src/Application/Sonata/UserBundle and i added some extra fields in src/Application/Sonata/UserBundle/Resources/config/doctrine/User.orm.xml
1
vote
2 answers

How to install FOSUserBundle dev-master without updating the dependency SonataUserBundle?

I'm using sonata-project/user-bundle:^2.2 and its dependency friendsofsymfony/user-bundle:~1.3. Now I want to install friendsofsymfony/user-bundle:dev-master. I tried composer require friendsofsymfony/user-bundle:dev-master I got the following…
Sithu
  • 4,752
  • 9
  • 64
  • 110
1
vote
2 answers

Disable default constraints defined in FOSUserBundle

I'm currently working on a Symfony2 project which uses Sonata. Previous developers have made modifications inside the vendors directly which is obviously a huge mistake so I'm in the process of refactoring this. I'm currently stuck with some…
Didier Ghys
  • 30,396
  • 9
  • 75
  • 81
1
vote
2 answers

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pdone.BaseUser' doesn't exist

I'm using FOSUserBundle 1.3.x-dev from within SonataUserBundle. I have follow every step on UserBundle installation to install and configure all. This is what I have at entities: #src/Application/Sonata/UserBundle/Entity/User.php namespace…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
1
vote
3 answers

Translation label for Choice field are not working in Sonata Admin Datagrid filter

I'm using Sonata Admin Bundle with Sonata User Bundle in my Symfony 2.7 application. I have a Property Admin page. Here is its configuration in my services.yml: // ... mybundle.admin.property: class: MyBundle\Admin\PropertyAdmin tags: …
Sithu
  • 4,752
  • 9
  • 64
  • 110
1
vote
2 answers

Symfony2 - SonataUserBundle - user profile dashboard

How I can get user profile section to looks like this below? https://github.com/sonata-project/SonataUserBundle/blob/master/Resources/doc/reference/user_dashboard.rst My current profile pages looks ugly.. Do I need to rewrite all that *.html files…
breq
  • 24,412
  • 26
  • 65
  • 106
1
vote
1 answer

SonataMediaBundle - Neither property nor methods exist

I've installed Sonata Admin, Media, Classification, and few others without any problem. I have an entity called task and I need to be able to attach some files to my tasks.So my Task entity looks like this: class Task { //... /** *…
cute.S
  • 361
  • 4
  • 17
1
vote
1 answer

Symfony2.6 & Sonata Media Bundle &SonataUserBundle: How to get image preview in edit form

I am uploading an image (Media entity of Sonata Media Bundle) and mapping it to a user (Vendor entity of Sonata User Bundle). The image gets uploaded, the entry in the media table gets created, the key to media entry gets added to user table. No…
Vasily802
  • 1,703
  • 2
  • 18
  • 35
1
vote
1 answer

Symfony 2, Sonata User Bundle : Invalid state, originalRoles array is not set

When i try to create a new user, with or without role(s) selected i straight have this error : Invalid state, originalRoles array is not set Roles choices are added that way (Not modified, straight from vendor): ->add('realRoles',…
Brieuc
  • 3,994
  • 9
  • 37
  • 70
1
vote
1 answer

symfony, sonta user bundle, many to many

I'm doing a little project, in which I use sonata user bundle to administrate easily my users. But I have another entity who is named order. In this entity is linked with one user. Where have I to write the manyToOne anotation? Thanks Best regards
anubis
  • 1,425
  • 5
  • 18
  • 47