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
0
votes
2 answers

Error new version PUGX Multi User Bundle

I have a new error in my Symfony 3 Project when I update my composer. Error Composer Error Symfony I had no errors since few months and I didn't touch the code since. I saw that the error is from a new version of PUGX, (released the 12/10/2016).…
lcouellan
  • 28
  • 5
0
votes
0 answers

Form Theming doesn't work with templates rendered by pugxmultiuserbundle

I'm using Symfony3. I have a separate template for theming forms, it works good in all forms in all templates but it doesn't work with the forms inside the templates rendered by pugxmultiuserbundle I have created an action for test and I have…
hous
  • 2,577
  • 2
  • 27
  • 66
0
votes
1 answer

PUGXMultiUserBundle get type of current user

How can I get the type of current user with PUGXMultiUserBundle ? This code returns this error {% if app.user.type == 'user_one' %} //... {% endif %} This is the error Method "type" for object "AppBundle\Entity\UserOne" does not exist This is…
hous
  • 2,577
  • 2
  • 27
  • 66
0
votes
1 answer

PuGXMultiUserBundle , multiple registration forms for same class users

I want to provide different login/register pages/forms for my users, but the users are the same class. I don't want to populate the database with additional tables. pugx_multi_user: users: medics: entity: class:…
Sorin Lascu
  • 395
  • 1
  • 4
  • 15
0
votes
1 answer

PUGXMultiUserBundle: inject repository into registration form error

I would like to be able to inject a repository into a registration form (similar to this approach) to use in an event listener but I get: Catchable Fatal Error: Argument 1 passed to AppBundle\Form\RegistrationType::__construct() must > be an…
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
4 answers

How to get a list of users with specific role symfony controller

I'm new to symfony 2, working with FOSUserBundle along with PUGXMultiUserBundle and I have troubles retrieving the list of users with a specific role, for example : ROLE_ADMINISTRATEUR to notifiy them about something. Anyway, inspired by this this…
0
votes
0 answers

PUGXMulti-user-Bundle: Entity class does not exist

I'm trying to implement PUGXMultiUserBundle in a Sylius install. After following bundle's instructions I'm able to fill the form for register userOne but all I get is: 'Entity class 'UserOne' used in the discriminator map of class…
indi
  • 63
  • 3
  • 10
0
votes
1 answer

Sylius dependencies update

I want to add the PUGXMultiUserBundle to my local working copy of Sylius (Windows7). I add "friendsofsymfony/user-bundle": "2.0.@dev", "pugx/multi-user-bundle": "3.0.@dev" to composer.json and run: composer update pugx/multi-user-bundle All I get is…
indi
  • 63
  • 3
  • 10
0
votes
0 answers

Get current user type PUGXMultiUserBundle

I'm using PUGXMultiUserBundle and FOSUserBundle with symfony2. My problem is i want to know the current user type in my controller, $user = $this->container->get('security.context')->getToken()->getUser(); // now i want to know the user's type for…
Ramy Rais
  • 140
  • 2
  • 10
0
votes
2 answers

PUGXMultiUserBundle: custom profile template

A method to enable custom user profile templates involves modifying the vendor's Configuration.php. Is there a method that does not? Or is this a viable solution? Current method appears below: Update: I'm thinking my bundle needs to take…
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
3 answers

PUGXMultiUserBundle: route "fos_user_registration_register" does not exist

In a continuing effort to incorporate the multi-user bundle in a project I get An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "fos_user_registration_register" as such route does…
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
1 answer

PUGXMultiUserBundle: undefined method setEnabled() in FOS\UserBundle\Controller\RegistrationController

I'm attempting to incorporate the multi-user bundle into a project and get Error: Call to undefined method Vol\VolBundle\Entity\Staff::setEnabled() in …
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
1 answer

FOS UserBundle FormType, Entity, RegistrationFormType

I'm very new of Symfony and I have a doubt that I can't solve by myself. I made a web application with Symfony2, and I use the vendor FOS UserBundle and PUGXMultiUserBundle. In this application there are three…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
0
votes
1 answer

FOSUserBundle twig form submit not expected behaviour

What is up, guys. I'm using PUGXMultiUserBundle on top of FOSUserBundle to register and login two different user entities. Everything is working out of the box: I have my User class extending the base User class from FOSUserBundle and my two…
-3
votes
1 answer

How can i get current user's id to use it in a dql statement?

I know that this question was asked by many but no one was answered even : This reponse. is not a good reponse for how do i get current user's id into a dql statement in Repository. i see so much talking about it's not logic or it's a bad choice…
Dmk
  • 88
  • 1
  • 11
1 2
3