I have entities Image
and Post
. Post has a uni-directional Nullify relationship to Image. It's a relationship and not an attribute because I want to benefit from lazy loading of relationships, making initial fetches of Post entities very fast. As you can guess, Image
contains image data.
Apple generally discourages uni-directional relationships (Link) unless there a good reason not to have an inverse relationship.
My reason for not having it is Image
is a generic entity, so having inverse relationships to all entities that use it seemed like overkill. However, I wonder if there is a better way to go about this without violating Apple's recommendation.