From 5046953b3f022c1bdd08a583d72265d24937caf7 Mon Sep 17 00:00:00 2001 From: cbullinger Date: Wed, 30 Aug 2023 09:02:42 -0400 Subject: [PATCH] Apply christian feedback --- .../realm-database/schemas/supported-types.txt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/sdk/kotlin/realm-database/schemas/supported-types.txt b/source/sdk/kotlin/realm-database/schemas/supported-types.txt index 75dff9566a..830806d95e 100644 --- a/source/sdk/kotlin/realm-database/schemas/supported-types.txt +++ b/source/sdk/kotlin/realm-database/schemas/supported-types.txt @@ -36,6 +36,9 @@ The Kotlin SDK does *not* natively support: :ref:`RealmInstant ` section for more information on how to use timestamps in your Realm objects. +Additionally, the Kotlin SDK does not currently support abstract properties. +Kotlin properties *must* be initialized. + .. note:: Realm stores all non-decimal numeric types as ``Long`` @@ -304,8 +307,6 @@ If you need timestamp data in a form other than ``RealmInstant``, you can add conversion code to your model class based on the following example: -.. is this still a good workaround example? - .. literalinclude:: /examples/generated/kotlin/SchemaTest.snippet.timestamp-workaround.kt :language: kotlin @@ -330,8 +331,6 @@ that it contains. ``RealmAny`` can hold: collection types (``RealmList``, ``RealmSet``, ``RealmDictionary``), or another ``RealmAny``. -.. Link to Create page once example is added - ``RealmAny`` properties: - are :ref:`indexable ` but *cannot* be used as a @@ -461,8 +460,14 @@ like Kotlin's `LinkedHashMap RealmObjects as Properties -------------------------- -You can use ``RealmObject`` and any subclasses as properties in your -object model. +You can use ``RealmObject`` and any subclasses, *except* +``AsymmetricRealmObject`` as properties in your object model. + +.. important:: + + ``AsymmetricRealmObject`` *cannot* be used as properties. + For more information, refer to :ref:`Asymmetric Objects + `. RealmObjects ~~~~~~~~~~~~ @@ -518,6 +523,7 @@ is a special type of ``RealmObject``. - *cannot* be nullable elements within a list - *cannot* be used as a :ref:`primary key ` - can be recursively referenced as an optional property in its own definition +- can be properties within an asymmetric object For more information, refer to :ref:`Embedded Objects `.