[SR-9300] Swift 4 Decodable does not suport Core Data update features #51771
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Codable
Area → standard library: `Codable` and co.
standard library
Area: Standard library umbrella
Attachment: Download
Additional Detail from JIRA
md5: 5562d7e9d1c7a83e347c89f119735f3f
Issue Description:
In Decodable protocol there is only one api
Above method is already convenience init but still if we call
`self = existingUser` then it says. self is immutable.
If we could have
onload
or
oncomplete
protocol methods also, then
we could fetch the existing managed object from core data and update with self.
So, currently we are inserting the values from core data to self object and then use the decoder container
Attaching all the core data files for review.User+CoderDecoder.swift
The text was updated successfully, but these errors were encountered: