Reputation: 653
I need some help here. Here is part of my data model:
I have folder, but I also want to have some folders that I can access easily without searching each time. So I made a default folders entity and I want a relationship to a certain folder.
However, it's complaining that it wants a reverse relationship. I don't see how that would work in this case. Any ideas?
Upvotes: 0
Views: 91
Reputation: 539745
Ramy's answer is correct, you don't have to define an inverse relationship. I just want to point out an alternative:
You can define multiple inverse relationships from Folder
to DefaultFolders
, e.g.
defAccount
as inverse relationship to account
,defArchive
as inverse relationship to archive
,Disadvantage: The Folder
records are larger, so your database needs more space.
Advantage: If you define the "Delete Rule" as "Nullify" for these inverse relationships, then the account
, archive
, ... properties in DefaultFolders
will be set to nil
automatically if the corresponding Folder
is deleted.
Upvotes: 2
Reputation: 21966
In this case just ignore the warning.If the warning annoys you, add a new property in the build settings, call it MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS and set the value to YES.
Upvotes: 2