Re: Core Data
Re: Core Data
- Subject: Re: Core Data
- From: Scott Stevenson <email@hidden>
- Date: Tue, 8 Nov 2005 13:53:32 -0800
On Nov 7, 2005, at 3:20 PM, Mathieu Martin wrote:
we are working on core data application and when the time come to
save we got this error :
2005-11-07 18:12:43.706 My Project [532] Illegal container for
relationship: value ...
the the description of one of our class
Does someone already had this error ??
It make the saving non working
I don't remember the exact circumstances that generate this, but I
believe has something to do with setting an inappropriate object type
for a given property. For example:
// categories is a to-many relationship
NSArray * myArray = [NSArray array];
[post setValue: myArray forKey:@"categories"];
Or maybe something like this:
// author is a to-one relationship
NSSet * mySet = [NSSet set];
[post setValue: mySet forKey:@"author"];
- Scott
--
http://theocacao.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Core Data (From: Mathieu Martin <email@hidden>) |