• 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: Error with intermediate many to many table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with intermediate many to many table


  • Subject: Re: Error with intermediate many to many table
  • From: Art Isbell <email@hidden>
  • Date: Fri, 7 Feb 2003 11:20:38 -1000

On Friday, February 7, 2003, at 04:21  AM, Kaj Hejer wrote:

At 14:12 +0000 07-02-03, Paul Stringer wrote:

Ive created a table using 'join in many to many', when it comes to
generating the SQL Im getting the following

*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value

Turning off primary key constraints gets rid of the errors but then doesn't
create the tables or primary keys... I could do all this manually but then
Im a bit concerned about the cause of this error and what Im missing here
and if its going to cause problems later...


Check that all info about the intermediate table are set in EOModeler. EOModeler does not set all of them when you create this intermediate table as I think it should. (bugreport anyone? :). EOModeler has all the info needet to do this right.

I haven't experienced any problems just leaving the EOModeler many-to-many configuration as is. EOModeler sets a property on the join entity's primary keys that is unnecessary - can't recall whether it's class property or used for locking. This is the only change that I typically make unless I know that I won't need an inverse relationship (unset it as a class property) or that I will need to access the join table (delete the flattened relationship that spans the join entity and set the underlying relationships as class properties). A mistake that some make is to set both the flattened and underlying relationships as class properties.


Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Error with intermediate many to many table (From: Kaj Hejer <email@hidden>)

  • Prev by Date: Re: can not save to defaultEditingContext
  • Next by Date: Re: can not save to defaultEditingContext
  • Previous by thread: Re: Error with intermediate many to many table
  • Next by thread: Re: Error with intermediate many to many table
  • Index(es):
    • Date
    • Thread