• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: How does Cocoa identify itself to a web server?
  • Next by Date: Re: Setting PDF document attributes with NSPrintOperation
  • Previous by thread: Core Data
  • Next by thread: Processing multiple objects w/NSTasks efficiently?
  • Index(es):
    • Date
    • Thread