Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Core Data Hierarchy #15

@andrewjburnett

Description

@andrewjburnett

I have a single APIImage class which inherits from MTLObject. I would like this class to implement the MTLManagedObjectSerializing protocol but I've run into a bit of a snag. My problem is that I have three distinct Image Entities implemented in Core Data all of which could potentially be created from the APIImage class. It seems as though MTLMangedObjectAdapter requires any class which implements the MTLManagedObjectSerializer protocol to define a unique Core Data entity name to which it will be mapped. Any suggestions? Even if I were to implement a hierarchy on the Core Data side (aka a single ImageEntity with three subentities) I don't believe I would be able to map the APIImage objects to their corresponding Core Data Entity class. Is this correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions