You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reflection from Decimal to NSDecimalNumber doesn't work due the following error:
'Unacceptable type of value for attribute: property = "FIELD_NAME"; desired type = NSDecimalNumber; given type = __NSDictionaryM; value = {
"_mantissa" = "";
}.'
Sample code:
var toCoreDataModel = CoreDataType(context: ctx)
let dict = fromModel.toDictionary()
toCoreDataModel = EVReflection.setPropertiesfromDictionary(dict, anyObject: toCoreDataModel, conversionOptions: .DefaultDeserialize)
Do you have any clue?
The text was updated successfully, but these errors were encountered:
Apparently a NSDecimalNumber is it's own object with for instance a _mantissa property. If so, then NSDecimalNumber needs to be handled in EVReflection like that or you could make it EVCustomReflectable. I will have a look at this later this weekend.
Reflection from Decimal to NSDecimalNumber doesn't work due the following error:
'Unacceptable type of value for attribute: property = "FIELD_NAME"; desired type = NSDecimalNumber; given type = __NSDictionaryM; value = {
"_mantissa" = "";
}.'
Sample code:
var toCoreDataModel = CoreDataType(context: ctx)
let dict = fromModel.toDictionary()
toCoreDataModel = EVReflection.setPropertiesfromDictionary(dict, anyObject: toCoreDataModel, conversionOptions: .DefaultDeserialize)
Do you have any clue?
The text was updated successfully, but these errors were encountered: