sonata-user-bundle

Adding customised validation rules to SonataUserBundle

♀尐吖头ヾ 提交于 2019-12-04 02:32:29
I have installed SonataUserBundle according to the docs and it all works fine. Except that I cannot add custom validation rules. My understanding is that the new rules should be added to a new Validation Group and then config.yml is updated to tell SonataUserBundle (or FosUserBundle) to add the new rules to the validation sequence. I have tried this, in various ways, but the new rules just don't seem to be picked up at all... Here's the configuration I'm using... (For the sake of this example, I'm just trying to adding a NotNull constraint to a new foo field. In reality I would like to see

How to install SonataDoctrineMongoDBAdminBundle properly?

走远了吗. 提交于 2019-12-03 03:40:42
I am really getting nervous because of lacking of enough resource for installing SonataDoctrineMongoDBAdminBundle and it's dependencies like sonataUserBundle. I have been trying to install this bundle for 15 days. I did everyting agaian and again what telling in sonata's official page. But it does not work properly. After extending sonataUserBundle as ApplicationUserBundle my final documents are: User.php <?php /** * This file is part of the <name> project. * * (c) <yourname> <youremail> * * For the full copyright and license information, please view the LICENSE * file that was distributed

Call to method setCurrentUri fails in Symfony/SonataUserBundle setup

假如想象 提交于 2019-12-01 15:50:24
I am trying to set up Symfony with the SonataUserBundle. User registration and login works fine. When I try to call up the /profile view, however I get the following error: Attempted to call method "setCurrentUri" on class "Knp\Menu\MenuItem" in F:\<my project path>\vendor\sonata-project\user-bundle\Block\ProfileMenuBlockService.php line 91. Did you mean to call: "setCurrent"? The last notice in the "event list" before the error is INFO - [cms::renderBlock] block.id=53, block.type=sonata.user.block.menu Has anyone encountered this error before and can provide information on how to resolve it?

Call to method setCurrentUri fails in Symfony/SonataUserBundle setup

时光怂恿深爱的人放手 提交于 2019-12-01 14:56:03
问题 I am trying to set up Symfony with the SonataUserBundle. User registration and login works fine. When I try to call up the /profile view, however I get the following error: Attempted to call method "setCurrentUri" on class "Knp\Menu\MenuItem" in F:\<my project path>\vendor\sonata-project\user-bundle\Block\ProfileMenuBlockService.php line 91. Did you mean to call: "setCurrent"? The last notice in the "event list" before the error is INFO - [cms::renderBlock] block.id=53, block.type=sonata.user

Sonata User Bundle + Symfony 3.x

半世苍凉 提交于 2019-12-01 04:53:11
I use Symfony 3.0.6, Sontata Admin Bundle 3.0.0 and the Doctrine ORM Admin Bundle on dev-master. The user bundle doesnt work even with dev-master. Is there a solution for Symfony 3.x yet? Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: remove symfony/symfony v3.0.6 - Conclusion: don't install symfony/symfony v3.0.6 - Conclusion: don't install symfony/symfony v3.0.5 - Conclusion: don't install symfony/symfony v3.0.4 - Conclusion: don't install symfony/symfony v3.0.3 - Installation request for sonata-project/user-bundle dev-master -> satisfiable

Sonata User Bundle + Symfony 3.x

最后都变了- 提交于 2019-12-01 01:56:18
问题 I use Symfony 3.0.6, Sontata Admin Bundle 3.0.0 and the Doctrine ORM Admin Bundle on dev-master. The user bundle doesnt work even with dev-master. Is there a solution for Symfony 3.x yet? Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: remove symfony/symfony v3.0.6 - Conclusion: don't install symfony/symfony v3.0.6 - Conclusion: don't install symfony/symfony v3.0.5 - Conclusion: don't install symfony/symfony v3.0.4 - Conclusion: don't install

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

天大地大妈咪最大 提交于 2019-11-29 17:23:20
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 found a lot of fields there: General Username E-Mail-Address Plain password Groups Profile Date of birth Firstname Lastname Website Biography Gender Locale Timezone Phone Social Facebook Uid Facebook Name Twitter Uid Twitter Name Google+ Uid Google+ Name Management Roles Locked Expired Enabled Credentails expired Security Token Two Step Verification