---
title: persistentStore
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmanagedobjectid/persistentstore
---

# persistentStore

The persistent store that fetched the object for the object ID.

## Declaration

```swift
weak var persistentStore: NSPersistentStore? { get }
```

## Discussion

Discussion nil if the ID is for a newly-inserted object that has not yet been saved to a persistent store.

## See Also

### Getting Managed Object ID Information

- [entity](coredata/nsmanagedobjectid/entity.md)
- [isTemporaryID](coredata/nsmanagedobjectid/istemporaryid.md)
- [uriRepresentation()](coredata/nsmanagedobjectid/urirepresentation().md)
