• 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: EOModler and Multiple Primary Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModler and Multiple Primary Keys


  • Subject: Re: EOModler and Multiple Primary Keys
  • From: Paul Lynch <email@hidden>
  • Date: Wed, 24 May 2006 18:26:39 +0100


On 24 May 2006, at 03:28, Owen McKerrow wrote:

When modelling the relationship between SubTopicName and TopicName and then trying to save
we get the following error


Relationship TopicName in entity SubTopicName is a to-one relationship, but its destination
attribute(s) does not match the primary key of the destination entity.

I would suggest reimplementing the relationship as a method invoking a fetch for the appropriate SQL. You might also define a to-many relationship, and return the first object from the array.


Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >EOModler and Multiple Primary Keys (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: EOModler and Multiple Primary Keys
  • Next by Date: Re: EOModler and Multiple Primary Keys
  • Previous by thread: Re: EOModler and Multiple Primary Keys
  • Next by thread: Re: EOModler and Multiple Primary Keys
  • Index(es):
    • Date
    • Thread