mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-11 03:36:51 +02:00
Fix issue where CoreStoreObjects nested in a type is mismatching classnames before migration
This commit is contained in:
@@ -37,7 +37,7 @@ import CoreData
|
|||||||
@nonobjc @inline(__always)
|
@nonobjc @inline(__always)
|
||||||
internal static func cs_subclassName(for entity: DynamicEntity, in modelVersion: ModelVersion) -> String {
|
internal static func cs_subclassName(for entity: DynamicEntity, in modelVersion: ModelVersion) -> String {
|
||||||
|
|
||||||
return "_\(NSStringFromClass(CoreStoreManagedObject.self))__\(modelVersion)__\(NSStringFromClass(entity.type))__\(entity.entityName)"
|
return "_\(String(reflecting: CoreStoreManagedObject.self))__\(modelVersion)__\(String(reflecting: entity.type))__\(entity.entityName)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user