You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@
4
4
* None.
5
5
6
6
### Enhancements
7
-
* Allow `insert` and `insertOrUpdate` RealmObject's or collections of RealmObject's containing RealmDictionaries.
7
+
* Allow `insert` and `insertOrUpdate`operations on `RealmObject` or `RealmObject`collections containing `RealmDictionary` or `RealmSet` fields.
8
8
9
9
### Fixed
10
10
* Removed wrong `@Nullable` annotation on `RealmQuery.maxRealmAny()`.
11
+
* Fixed `RealmAny.getValueClass()` returning the `RealmObject` proxy class instead of the model class on a `RealmAny` referencing a managed `RealmObject`.
11
12
12
13
### Compatibility
13
14
* File format: Generates Realms with format v21. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1.
emitSingleLineComment("For Sets of equal lengths, we need to set each element directly as clearing the receiver Set can be wrong if the input and target Set are the same.")
emitSingleLineComment("For Sets of equal lengths, we need to set each element directly as clearing the receiver Set can be wrong if the input and target Set are the same.")
// Throw if model contains a set field until we add support for it
1954
-
if (containsSet(metadata.fields)) {
1955
-
emitStatement("throw new UnsupportedOperationException(\"Calls to 'insertOrUpdate' with RealmModels containing RealmSet properties are not supported yet.\")")
1956
-
endMethod()
1957
-
emitEmptyLine()
1958
-
return@apply
1959
-
}
1960
-
1961
2030
// If object is already in the Realm there is nothing to update
// Throw if model contains a set field until we add support for it
1996
-
if (containsSet(metadata.fields)) {
1997
-
emitStatement("throw new UnsupportedOperationException(\"Calls to 'insertOrUpdate' with RealmModels containing RealmSet properties are not supported yet.\")")
0 commit comments