Copy users from realm

master
esensar 2017-01-07 17:24:43 +01:00
parent bed927d441
commit 54c748fb29
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public class UserDAO extends RealmDAO<User> {
}
public User findUserById(Realm realm, int id) {
return realm.where(entityClass).equalTo(User.PRIMARY_KEY, id).findFirst();
return realm.copyFromRealm(realm.where(entityClass).equalTo(User.PRIMARY_KEY, id).findFirst());
}
public void deleteById(Realm realm, int id) {