Open iamitksharma opened 6 years ago
I have the same issue, the func sync(in context: NSManagedObjectContext) in the Core Data class extensions never called. The default sync function in the protocol extension is always called.
I solved the problem, you have to add the function to the protocol CoreDataRepresentable
func sync(in context: NSManagedObjectContext) -> Observable
For Model like CDMessage,
Why func sync not called when I try to save CDMessage data in core data.
CDConversation contained CDMessage, for reference I am sharing response below: { id : 23, message : { id : 123, text : "hello" } }
extension Conversation: CoreDataRepresentable {
} }