Managing users/roles/groups in FOSUserBundle
I am developing a simple CRUD to manage users/roles/groups of the application in which I am working. To manage users I'm using FOSUserBundle . What I want to do can be accomplished in several ways: Assigning roles to groups and then assign users to these groups Assigning roles to users directly But I have no idea how. I knew that FOSUser BaseUser class already has a column roles and in the documentation of FOSUser explains how to establish a ManyToMany relationship between users and groups but do not talk anything about roles. The only idea that comes to mind is to create an entity to manage