Uploaded image for project: 'Realm Dart SDK'
  1. Realm Dart SDK
  2. RDART-767

cancel the manage state of RealmEntity

      Problem

      I have some experience of Java and Android. As far as know, the following are allowed.
      `var person = Person('Lucas');
      realm.write(() =>

      { realm.add(person) }

      );
      // isManaged now can't change, following just is a way of I'm thinking
      person.isManaged = false;
      person.name = 'Mark';

      realm.write(() => realm.add(person,update: true));`
      when I get entity from database,I modify some properties then update it using transaction。
      But when I just want to change it's properties without database. there are wrong.

      RealmException: Error setting property Person.name Error: RealmException: Error code: 2005 . Message: Trying to modify database while in read transaction

      Solution

      No response

      Alternatives

      No response

      How important is this improvement for you?

      I would like to have it but have a workaround

      Feature would mainly be used with

      Local Database only

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: