Added new unit tests. Change get***ById() to find just entities from this realm/application

This commit is contained in:
mposolda committed 2014-02-21 23:16:06 +01:00
1 parent e85c2c9826
commit 8a4ef40e9e
10 files changed
+244 -29

No files matched your search

@@ -576,6 +576,8 @@ public class RealmAdapter extends AbstractAdapter implements RealmModel {
@Override
public void deleteRoleMapping(UserModel user, RoleModel role) {
if (user == null || role == null) return;
UserEntity userEntity = ((UserAdapter)user).getUser();
getMongoStore().pullItemFromList(userEntity, "roleIds", role.getId(), invocationContext);
}