Empty database storage #254

davebcn87 opened this Issue Sep 13, 2012 · 3 comments


None yet

2 participants



I'm using MagicalRecord in a Mac App and when I close the app I lose all the data that I've saved in a session.

I use this method to setup the database:

[MagicalRecord setupCoreDataStackWithStoreNamed:@"nameOfTheStorage"];

Am I doing something wrong?

Magical Panda Software member

Yes, I do.

I use:

[Model createEntity];
// Here I set the variables
[[NSManagedObjectContext defaultContext] save];

I've checked that I'm saving in the main thread so I had problems with concurrency in iOS but this is not the case.

When I query in the same session that I've saved things it works perfectly, but when I restart the app, the data has gone.

Any ideas?


I've already fixed the issue that I was having, I've use the debug variable in prefix to see the logs and now is working.

Thanks for this awesome product and for your support!!!

@davebcn87 davebcn87 closed this Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment