FOSUserBundle
FOSUserBundle copied to clipboard
Implementing Groups
Hi, i implemented the groups as of the documentation. And the are presented in the DB whenever i create a new group. But what is still unclear to me from the documentation:
- How do i make a user be a member of a default group, after registration? Do i need to override the Controllers? or can i use a doctrine listener?what is best, easiest path?
- How do i edit the Roles of the different groups?
If you want to put the user in a group during the registration, you need to extend the form handler to add some logic on success. To edit the roles of a group, you need to build an interface doing it. there is no built-in way to do it.