experimental

This commit is contained in:
John Estropia
2019-09-05 18:40:39 +09:00
parent 12dc32f7e6
commit 2cdd85c49e
3 changed files with 119 additions and 24 deletions

View File

@@ -131,11 +131,10 @@ extension ImportableUniqueObject where UniqueIDType.QueryableNativeType: CoreDat
}
set {
self.cs_toRaw()
.setValue(
newValue,
forKvcKey: self.runtimeType().uniqueIDKeyPath,
willSetValue: { ($0.cs_toQueryableNativeType() as CoreDataNativeType) }
self.cs_toRaw().setValue(
newValue,
forKvcKey: self.runtimeType().uniqueIDKeyPath,
willSetValue: { ($0.cs_toQueryableNativeType() as CoreDataNativeType) }
)
}
}