Skip to content

MR_importFromArray does not return array #689

Closed
matrosovDev opened this Issue Mar 3, 2014 · 1 comment

2 participants

@matrosovDev

I use this method for importing. But when I try print array object the save block it does not return any objects for me. It return empty array. When I try to findAll Team object in completion block there are not any object as well. Just when I transition between view controller and go back I can find team objects in storage. So I think the method is work but with some delay or something like this.

[MagicalRecord saveWithBlock:^(NSManagedObjectContext *localContext)
{
    NSArray *array = [Team MR_importFromArray:objects inContext:localContext];   
}
completion:^(BOOL success, NSError *error)
{

}];

this is my question on stack http://stackoverflow.com/questions/22115287/magicalrecords-importfromarray-return-empty-array/22156004?noredirect=1#comment33627885_22156004

@tonyarnold

I see from your Stack Overflow conversation that you seem to have found a solution to this issue. Feel free to re-open this issue if that's not the case and we'll take a closer look.

@tonyarnold tonyarnold closed this Apr 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.