Re: Saving Managed Object Context
Re: Saving Managed Object Context
- Subject: Re: Saving Managed Object Context
- From: "Ayers, Joseph" <email@hidden>
- Date: Tue, 24 Aug 2010 12:43:47 -0400
- Acceptlanguage: en-US
- Thread-topic: Saving Managed Object Context
That solved it. We made the reciprocal to-one relationship optional and it saved.
Thanks,
Joseph
On Aug 23, 2010, at 5:48 PM, Quincey Morris wrote:
> On Aug 23, 2010, at 09:33, Ayers, Joseph wrote:
>
>> NSError *error = nil;
>> if (![[self managedObjectContext] save: &error]) {
>> NSLog(@"Error while saving\n%@",
>> ([error localizedDescription] != nil) ? [error localizedDescription]: @"Unknown Error");
>>
>> Results in:
>>
>> 2010-08-22 20:31:32.385 Roboplasm[3508:a0f] Error while saving
>> TapeList is a required value.
>
> The error means that some entity is defined to have a to-one relationship to TapeList, and the relationship property is defined to be non-optional, but in some object the relationship is actually nil.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden