Inverse relation in realm -


We accept two tables, box and items . There are many items in the box, one item contains only one box. I would like to get all those items which are in the array given in the box. How could I do that? In the CD I can do it in the item category from the predicate and property which stands for the connection to the box.

I am using version 0.81

update (10-27- 2014)

Bidirectional links are now supported. See the scope document:

Original Answer

Bidirectional relations should be explicitly added at this time. Here's an example:

  @ square box; @Inteface Item: RLM Object @ Property Box * Box; @ And RLM_ARRAITYEPE (item); @ Interface box: RLM object @ property RLMRRA & lt; Items & gt; * item; @end ... item * items = [[item alloc] init]; Box * box = [[Box Alok] initWithObject: @ [@ [item]]]; Item.box = box;   

We have planned to simplify this method in the future.

This answer

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -