mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Fetching by ObjectID #259
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @puelocesar on GitHub (Apr 2, 2019).
I have an uriRepresentation of an NSManagedObject saved somewhere in my app, and I want to fetch that object using CoreStore.
Problem is,
NSPersistentStoreCoordinator().managedObjectID(forURIRepresentation: url)always returns nil for me.Is there a special way of doing this on CoreStore?
@JohnEstropia commented on GitHub (Apr 12, 2019):
CoreStore doesn't really do anything special here, so there's probably something in the way you're using
uriRepresentation.Are you sure that the
uriRepresentationyou are saving are not from temporary object IDs?