sonata-project/SonataUserBundle — pull request #301 by benglass (2013-12-20 21:41:15+00:00)
Title: Fix error new group originalRoles null condition

I'm not sure if this should be fixed here or in the RestoreRolesTransformer but new Groups have no roles associated with them (and its also perfectly valid for existing groups to have no roles associated with them) so the treatment of null as an exception in RestoreRolesTransformer seems incorrect and it causes an exception. Specifically when you use the 'Add Group' button when administering a user you cannot ever create new groups because of this behavior (the group is created but the user sees an error).