WIP: dynamic migrations

This commit is contained in:
John Estropia
2017-04-25 18:08:43 +09:00
parent 53ab140341
commit 54c81d23f5
7 changed files with 147 additions and 82 deletions

View File

@@ -149,7 +149,7 @@ public final class DataStack: Equatable {
let actualType = anyEntity.type
if (actualType as AnyClass).isSubclass(of: type) {
entityTypesByName[entityDescription.name!] = actualType
entityTypesByName[entityDescription.name!] = (actualType as! CoreStoreObject.Type)
}
}
}