Symfony 2 FOS UserBundle users doesn't get group's role
问题 I'm using FOS User Bundle to manage access to my app. As i need a group notion, i've implemented what i need as described in the doc group . Everything's fine for creating users and groups BUT when i'm logging in with a user, and trying to get his role, he has none but USER_ROLE. Here is my User use FOS\UserBundle\Entity\User as BaseUser; class RegistredUser extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM