Home > Mobile >  How can I set a relationship of the same type of the parent object?
How can I set a relationship of the same type of the parent object?

Time:11-13

I have this Folder entity inside the CoreData model and I want to create a one-to-many relationship 'folders' of type Folder. How can I do that?

If I do like in the screenshot, the only available 'Inverse' property is 'folders' not 'folder'.

enter image description here

CodePudding user response:

Here is what I did and it works. Thanks!

enter image description here

  • Related