I had a conceptual problem with Core Data.
I have an entity called OBJ which has an OBJ entity in a relationship. I get very eloquent messages like "An error occured."
when I test my model.
For each OBJ entity, I wish to define one or more ACTIONs associated with another OBJ entity. So I guess my mistake comes from a loop, but not sure.
At first, I defined an inverse relationship (as advised by the doc, a relationship should always have its inverse):
ENTITY OBJ
Attributes:
name
status
Relationships:
actions
<-------- >>
ENTITY ACTION
Attributes:
name
Relationships:
obj
Well, it does not work, because the OBJ always refers to itself. I have therefore decoupled relationships. The ACTION points to an OBJ and the OBJ points to several ACTIONs, without reciprocity. Error message.
My basic idea is that each of the ACTIONs associated with a particular OBJ can run if the status of another OBJ allows it.
How to build this to be MVC consistent? The basic idea seems simple, it is his achievement that is less so. Is it a wrong Core Data modeling? Do I make a mistake at the controller level? Interface? Note that at this level I have not written a single line of code.
Thank you!