Skip to content

Commit cd59a8e

Browse files
committed
Add call to scratchPad.obtainPermanentIDs in CRUD create before mapping to unmanaged.
bugfix/create-returns-items-with-temporary-objectids
1 parent b6a4b9f commit cd59a8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/CoreDataRepository/CoreDataRepository+CRUD.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ extension CoreDataRepository {
3434
try context.performAndWait {
3535
try context.save()
3636
}
37+
try scratchPad.obtainPermanentIDs(for: [object])
3738
return object.asUnmanaged
3839
}
3940
}

0 commit comments

Comments
 (0)