Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreData not working? #10

Open
felipecaldas opened this issue Mar 1, 2016 · 1 comment
Open

CoreData not working? #10

felipecaldas opened this issue Mar 1, 2016 · 1 comment

Comments

@felipecaldas
Copy link

Hi Ray,

I am using your code as basis for my own and struggling here with CoreData. My CoreData DataStore class, has the very same init() method with everything you have in your CleanStore project and the AppDelegate has no references to CoreData. The init() method is invoked and throws no exception. I can query the DB, insert and update. No exceptions thrown. But, the data is not actually inserted in the DB.

Have you experienced that? Thanks

@felipecaldas
Copy link
Author

My AppDelegate injects the repository:

let container = Container() { c in
c.register(UserDataStore.self) { _ in ParseRepository() } //If I ever want to change Parse to something else (example, Firebase) then this is the place I change to a new repo
c.register(GenericRepository.self) { r in
GenericRepository(_userDataStore: r.resolve(UserDataStore.self)!)
}
}

not sure if this has to do with anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant