Reputation: 822
Are entries in a Realm database unique and referenced?
For example I have Person
and Car
in my schema and a Person
object can have many Car
s in a list.
Person
named "Donald"Car
called "Tesla" and I push that new Car
into Donald's list of cars.realm.objects('Car')[0].name
?Upvotes: 3
Views: 430
Reputation: 1212
Relationships between Realm objects are direct references between them. Changing an object in Person
's cars
collection will see the changes reflected in realm.objects('Car')[0]
because it's the same object underneath.
Check out Realm Objects & Relationships, which goes into more detail.
Upvotes: 2