Questions tagged [pugxmultiuserbundle]

The PUGXMultiUserBundle support for a database-backed user system in Symfony2. The PUGXMultiUserBundle extends FOSUserBundle adding the feature to handle users of different types. For now only supports the ORM db driver and is based on the doctrine2 inheritance.

The PUGXMultiUserBundle support for a database-backed user system in Symfony2. The PUGXMultiUserBundle extends FOSUserBundle adding the feature to handle users of different types. For now only supports the ORM db driver and is based on the doctrine2 inheritance.

45 questions
8
votes
1 answer

How to assign roles on successful registration?

I'm using fos user bundle and pugx multi user bundle. I've read all the documentation and I'm new to Symfony. In the pugx multi user bundle there's a sample on every point but one: sucessful registration. Samples of overriding controllers for…
Olivier Pons
  • 15,363
  • 26
  • 117
  • 213
7
votes
2 answers

Assign a Role with FosUserBundle

I'm really new to Symfony, I'm trying to register a ROLE to a User with FosUserBundle but I can't manage how to do it. Actually I integrated also PUGXMultiUserBundle in order to have two different form for two different roles. Can anyone help…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
4
votes
1 answer

FOSUserBundle or PUGXMultiUserBundle to have two different user profiles (Symfony2)

I'm doubtful about how to approach this problem: My Symfony2 app for this issue has two different profiles, name 'em "Seller" and "Buyer". The goal is to keep a bunch of attributes about a "Seller", and, on the other hand, not much about the "Buyer"…
Manuel Gómez
  • 103
  • 1
  • 9
3
votes
1 answer

FOSUSER Bundle with multiple USer + Inheritance

I use PUGXMulti USer , it is An extension for FOSUserBundle to handle users of different types. Following the documentation STep by Step , I created my Entity USER , and 2 other Entities ( Driver , Client ) extends User /**@ORM\Entity *…
Asmaa
  • 331
  • 1
  • 4
  • 13
3
votes
5 answers

in_array() expects parameter 2 to be array, null given

I made a web-application with Symfony2, and I'm using PUGX User Bundle and FosUserBundle to manage 2 different users. This is one of the two user: /** * @ORM\Entity * @ORM\Table(name="user_Operator") * @ORM\HasLifecycleCallbacks() *…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
2
votes
1 answer

Conditional resetting email templates in FosUserBundle Symfony Framework

I have a project in symfony using FosUserBundle and PugxMultiUserBundle because I need 2 user types. There are CmsUsers and Platform players. I need a way to have Fos email templates (resetting template,registering template etc.) per user type. One…
billy tzez
  • 155
  • 1
  • 2
  • 11
2
votes
0 answers

Symfony2: configuring the check path for admin login

I am trying to configure separate login for admin user in Symfony application. These are my settings: config.yml fos_user: db_driver: orm firewall_name: main user_class: CoreBundle\Entity\User service: user_manager:…
blahblah
  • 1,010
  • 15
  • 40
2
votes
0 answers

Symfony 2.8 FOSUserBundle + embed formtype

I am currently working on a symfony 2.8 with FOSUserBundle and PUGXmultiUserBundle. I try to incorporate the registration form with another form, with two-way relationship. When you create a user account must be created along a line of the entity…
Frank Drebin
  • 71
  • 1
  • 8
2
votes
1 answer

Symfony 2 with PUGXMultiUserBundle and multi login form

here my problem : I have two categories of users in my application (locataires and propriétaires), and i need one (or two) login form. I use PUGXMultiUserBundle to manage all my users. here is the view for loggin "proprietaires" : {% extends…
Thomas
  • 143
  • 1
  • 12
2
votes
1 answer

Get user object inside an entity

I'm trying to get user object inside an entity. I'm using FosUserBundle and PugxMultiUserBundle, and I tried the following command: container->get('fos_user.user_manager')->getToken()->getUser(); but I get: Undefined property $container How can I…
1
vote
0 answers

Type error: Too few arguments to function FOS\UserBundle\Controller\RegistrationController::__construct()

Hi i am trying to integrate PUGXMultiUserBundle to my Symfony project I followed the documentation but i have this error When I go on the registration page http://example.com/app_dev.php/register: Type error: Too few arguments to function Type…
1
vote
1 answer

Dependency service issue with PUGX multi user in symfony

I'm currently working on a symfony project that I have to finish to end my degree. I wanted to create two kinds of users for my site so I installed PUGX which was the most popular and easy to use. I followed the documentation on github to achieve…
J. Gallart
  • 13
  • 3
1
vote
0 answers

Error with UserManager::__construct() in PUGXMultiUserBundle

Sorry if my english in't very good. I'm learning it. I have followed all the steps of the instalation guide of PUGXMultiUserBundle. The only thing i haven`t done is to create the forms for my entities. I'm confused about it. When I go to the…
Brjtr
  • 157
  • 4
  • 17
1
vote
0 answers

Symfony/PUGXMultiUserBundle separate sessions/cookies for two types of users logged at the same time?

Symfony2.8 with PUGXMultiUserBundle: I've got multiple user types (separate entities) and one login form. Users are redirected to different "subsystems", based on user entity type. And now client wants the sessions to be separate, so in two browser…
b174008
  • 285
  • 3
  • 13
1
vote
1 answer

FOSUser + PUGX: fatal type error in UserManager.php

After updating composer, I started getting this error Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface FOS\UserBundle\Util\PasswordUpdaterInterface, instance of…
blahblah
  • 1,010
  • 15
  • 40
1
2 3