I am trying to change the role of a user, using the FOSUserBundle. The problem is: if the user is logged at the same time, he has to relog to see the new role.
Any s
Try this in your controller:
$this->get('fos_user.user_manager')->refreshUser($user);
See FOS/UserBundle/Model/UserManager.php