Improve entity.changed(), it now checks for attachment and inited.
This commit is contained in:
parent
18bb47007e
commit
1a3f153a08
@ -60,7 +60,12 @@ public abstract class Entity<E extends Entity<E>> implements Comparable<E>
|
||||
String id = this.getId();
|
||||
if (id == null) return;
|
||||
|
||||
this.getColl().changedIds.add(id);
|
||||
Coll<E> coll = this.getColl();
|
||||
if (coll == null) return;
|
||||
|
||||
if (!coll.inited()) return;
|
||||
|
||||
coll.changedIds.add(id);
|
||||
}
|
||||
|
||||
public ModificationState sync()
|
||||
|
Loading…
Reference in New Issue
Block a user