Swift 4 support

This commit is contained in:
John Estropia committed 2017-06-09 11:25:28 +09:00
1 parent f618617053
commit 6e01a58c85
17 files changed
+116 -69

No files matched your search

+2 -1
View File
@@ -647,8 +647,9 @@ public extension DataStack {
let mappingProviders = storage.migrationMappingProviders
do {
try withExtendedLifetime((sourceSchema.rawModel(), destinationSchema.rawModel())) { (sourceModel, destinationModel) in
try withExtendedLifetime((sourceSchema.rawModel(), destinationSchema.rawModel())) {
let (sourceModel, destinationModel) = $0
let mapping = try mappingProviders.findMapping(
sourceSchema: sourceSchema,
destinationSchema: destinationSchema,