Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Support for Relations #15

Open
bbjay opened this issue May 29, 2020 · 1 comment
Open

Support for Relations #15

bbjay opened this issue May 29, 2020 · 1 comment

Comments

@bbjay
Copy link

bbjay commented May 29, 2020

I get a
PlatformException (PlatformException(-1, Unsupported value for standard codec, null))
exception on iOS when i try to fetch all objects, when one object has a one-to-one relation to another object.

It looks like relations need special handling which is not implemented yet, right?

@xspyhack
Copy link

Add these two lines code to - (NSDictionary *)toMap method in RLMObject (FlutterRealm) will support relationships

} else if ([self[p.name] isKindOfClass:[RLMObject class]]) {
    map[p.name] = [(RLMObject *)self[p.name] toMap];
} 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants