sonata-project/SonataUserBundle — pull request #470 by vstrizhenok (2014-09-12 20:39:58+00:00)
Title: Fixing problem with RestoreRolesTransformer #469

I've made changes by first way of my suggestion
"So I propose to use array_key instead values (if this transformer used only for form type sonata_security_roles) or merge array_keys of the $avaliableRoles array with its values in another case."