turn on cache
This commit is contained in:
1 parent
e99a675c50
commit
e37b5613ed
2 files changed
+3
-2
No files matched your search
@@ -683,7 +683,8 @@ public class RealmAdapter implements RealmModel {
|
||||
entity.setSocialProvider(socialLink.getSocialProvider());
|
||||
entity.setSocialUserId(socialLink.getSocialUserId());
|
||||
entity.setSocialUsername(socialLink.getSocialUsername());
|
||||
entity.setUser(((UserAdapter) user).getUser());
|
||||
UserEntity userEntity = em.getReference(UserEntity.class, user.getId());
|
||||
entity.setUser(userEntity);
|
||||
em.persist(entity);
|
||||
em.flush();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user