Unable to perform save #682

Closed
jostster opened this Issue Feb 21, 2014 · 2 comments

Comments

Projects
None yet
2 participants

When I try and delete an item like.

Appointment *appointment = [Appointment MR_findFirstByAttribute:@"id" withValue:appointmentId inContext:[NSManagedObjectContext MR_contextForCurrentThread]];
        [appointment MR_deleteInContext:[NSManagedObjectContext MR_contextForCurrentThread]];

        [[NSManagedObjectContext MR_contextForCurrentThread] MR_saveToPersistentStoreWithCompletion:^(BOOL success, NSError *error) {
            if (success) {
                [[NSNotificationCenter defaultCenter] postNotificationName:kAppointmentCancelledSuccessfully object:nil];
            } else {
                NSLog(@"Error saving cancellation: %@", [error localizedDescription]);
                [[NSNotificationCenter defaultCenter] postNotificationName:kAppointmentCancelledSuccessfully object:nil];
            }

        }];

I get an error

2014-02-21 15:01:41.619 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0x9062370) → Saving <NSManagedObjectContext (0x9062370): *** DEFAULT ***> on *** MAIN THREAD ***
2014-02-21 15:01:48.621 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0x9062370) → Save Parents? 1
2014-02-21 15:01:51.731 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0x9062370) → Save Synchronously? 0
Printing description of self->_successCallbackQueue:
<nil>
2014-02-21 15:04:08.088 Customer View[49489:70b] -[NSManagedObjectContext(MagicalRecord) MR_contextWillSave:](0x9062370) Context DEFAULT is about to save. Obtaining permanent IDs for new 108 inserted objects
2014-02-21 15:06:27.038 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0xc8626a0) → Saving <NSManagedObjectContext (0xc8626a0): *** BACKGROUND SAVING (ROOT) ***> on *** MAIN THREAD ***
2014-02-21 15:06:31.615 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0xc8626a0) → Save Parents? 1
2014-02-21 15:06:32.221 Customer View[49489:70b] -[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:](0xc8626a0) → Save Synchronously? 0
2014-02-21 15:07:20.843 Customer View[49489:3913] -[NSManagedObjectContext(MagicalRecord) MR_contextWillSave:](0xc8626a0) Context BACKGROUND SAVING (ROOT) is about to save. Obtaining permanent IDs for new 108 inserted objects
2014-02-21 15:07:20.846 Customer View[49489:3913] -[__NSArrayI transformedValue:]: unrecognized selector sent to instance 0x9219870
2014-02-21 15:07:20.848 Customer View[49489:3913] __70-[NSManagedObjectContext(MagicalSaves) MR_saveWithOptions:completion:]_block_invoke21(0xc8626a0) Unable to perform save: -[__NSArrayI transformedValue:]: unrecognized selector sent to instance 0x9219870
Contributor

tonyarnold commented Apr 12, 2014

Do you call transformedValue: anywhere in your app? We don't call it in MagicalRecord directly, so I don't think this is an issue with MagicalRecord directly — I need more information to verify.

tonyarnold was assigned by jostster Apr 12, 2014

Contributor

tonyarnold commented Apr 25, 2014

Closing due to lack of updates, please feel free to re-open if you can get me some more information.

tonyarnold closed this Apr 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment