• 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: How to handle relationship properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle relationship properties?


  • Subject: Re: How to handle relationship properties?
  • From: Arturo Perez <email@hidden>
  • Date: Tue, 03 Jan 2006 08:33:54 -0500

Hi Miguel,

Sounds like your primary key may be defined incorrectly in the model? What database and plugin are you using?

Miguel Arroz wrote:
Hi!

It does not work... it actually generates the correct SQL call, with the user_id column name and such, but apparently it can't get the primary key value from the object and throws an exception (No value specified for parameter 1.). Maybe if I make the primary key a class property, but that sucks... am I doing something wrong?

  Yours

Miguel Arroz

On 2006/01/03, at 12:09, Arturo Pérez wrote:

On Jan 3, 2006, at 6:57 AM, Miguel Arroz wrote:
It would be great if Apple allowed to have a qualifier like "user = %@", %@ being the User object. What it should do is what I do manually... using EOUtilities.primaryKeyForObject() to obtain it's primary key, and the fetch the correct object.

EOF does allow qualifiers like that. If it's not working then your model may be incorrect.


-arturo
_______________________________________________
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: 
 >How to handle relationship properties? (From: Miguel Arroz <email@hidden>)
 >Re: How to handle relationship properties? (From: Arturo Pérez <email@hidden>)
 >Re: How to handle relationship properties? (From: Miguel Arroz <email@hidden>)
 >Re: How to handle relationship properties? (From: Miguel Arroz <email@hidden>)
 >Re: How to handle relationship properties? (From: Arturo Pérez <email@hidden>)
 >Re: How to handle relationship properties? (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: How to handle relationship properties?
  • Next by Date: Re: How to handle relationship properties?
  • Previous by thread: Re: How to handle relationship properties?
  • Next by thread: Re: How to handle relationship properties?
  • Index(es):
    • Date
    • Thread