Skip to content

Using existing CoreData objects with convenience initializers #511

@bertayyonel95

Description

@bertayyonel95

In the app that I'm working on I have been previously using CoreData, and now I am migrating all my CoreData logic to CoreStore. I have some convenience initializers for my CoreData objects as such;

convenience init(fromJson json: JSON) {
        self.init()
        self.addData(fromJson: json)
    }

I was wondering if it is possible to use these initializers with create(_ into) ? Since creating the object with those initializers and then using fetchExisting on the transaction doesn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions