zfcuser adiciona papel do usuário após o registro

Estou usando o Zend Framework 2 com ZfcUser, BjyAuthorize e Doctrine para o banco de dados. Registro etc. funciona muito bem até agora. Meu problema é que os usuários registrados não têm função atribuída, então eu quero adicionar a função "usuário" ao usuário durante o registro.

Acho que eu poderia anexar isso ao evento "register", mas não sei como fazer isso.

Espero que alguém possa me ajudar ...

(eu usei este tutorial para configurar o zfcuser etc.http://samminds.com/2013/03/zfcuser-bjyauthorize-and-doctrine-working-together/)

public function onBootstrap(MvcEvent $e)
{
    $zfcServiceEvents = $e->getApplication()->getServiceManager()->get('zfcuser_user_service')->getEventManager();
    $zfcServiceEvents->attach('register', function($e) {
        $user = $e->getParam('user');
        // probably the role must be added here, with $user->addRole();
        // but how do i get the user Role Entity to add from DB?

});

questionAnswers(4)

yourAnswerToTheQuestion