Skip to content

Commit

Permalink
Clarify note
Browse files Browse the repository at this point in the history
  • Loading branch information
cbullinger committed Jul 31, 2023
1 parent 4d00c77 commit 8f88544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/sdk/kotlin/realm-database/schemas/relationships.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ to multiple objects.
You can create a relationship between one object
and any number of objects using a field of type ``RealmList<T>`` where
``T`` is a Realm object in your application. Note that lists or sets of
``RealmObject`` cannot have null elements.
``RealmObject`` cannot have null elements and must be initialized with
``realmListOf()`` or ``realmSetOf()``.

.. literalinclude:: /examples/generated/kotlin/SchemaTest.snippet.to-many-relationship.kt
:language: kotlin
Expand Down

0 comments on commit 8f88544

Please sign in to comment.