ios - In Realm, Is there any way to make a custom array of database rows that I can still Query? -
if need custom build list of database rows because can not query (i need correlate external data), there anyway make resulting rlmarray able queried?
when run following line:
return [all_matches objectswhere:@"rootguid == ''"];
i following exception:
this method can called on rlmarray instances retrieved rlmrealm
the thing can think of have empty column can manually flag it, seems bit outrageous.
i found decent way around this. instead of collecting instances in rlmarray, collected primary key within nsarray. then, when want rlmresult specific values found, call.
[myrealmtable objectswhere:@"primarykey in %@", collected_key_array];
Comments
Post a Comment