FriendsOfSymfony/FOSUserBundle — pull request #939 by MDrollette (2013-01-09 20:46:46+00:00)
Title: change mongodb type for roles to be collection instead of hash

After this change https://github.com/doctrine/mongodb-odm/pull/472 the roles are being stored in mongo as an object instead of an array which breaks queries like this

$this->createQueryBuilder()->field('roles')->in(array('ROLE_ADMIN'));

Changing the type to collection stores them as an array.