Similar or perhaps related to this question.
Say I have an object class "Zoo". It has a to-many relationship to objects of (abstract) type "Animal". As such, an Animal belongs to a Zoo object, and has the property 'zoo' and the Zoo object has the property 'animals'.
However, I am generally more interested in concrete sub-entities, such as Giraffe, or Monkey.
I would like to have a relationship property called "giraffes" and "monkeys", but also the property "animals". I would like to create Giraffe objects and add them to the Zoo.
How would this work? I can't specify in the relationships giraffes and monkeys that its inverse is "zoo" because this would be invalid (in the Core Data Editor).
I am generally working with the subclasses, but I need to always be able to ask them what Zoo they belong to, so need a common interface.
Would appreciate some help and please let me know if there's anything I could clarify.