• 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
Stupid Relationship question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stupid Relationship question.


  • Subject: Stupid Relationship question.
  • From: "Tom Jones" <email@hidden>
  • Date: Tue, 27 May 2008 10:55:56 -0500

So, I'm just playing around with WO, and decided t make an Organization Chart application. An employee has an optional to many relationship employee>>direct_reports, and an optional to one relationship employee>supervisor. The problem I have is when I try to display an employee who has no supervisor, I get an exception because when it tries to fetch the supervisor, it finds no matching record. My expectation was that it would return null, rather than raise an exception. What is the correct way to handle fetching optional relationships?
 _______________________________________________
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

  • Follow-Ups:
    • Re: Stupid Relationship question.
      • From: Ken Anderson <email@hidden>
  • Prev by Date: Re: EPGenerate column names with spaces
  • Next by Date: Re: Stupid Relationship question.
  • Previous by thread: Re: EPGenerate column names with spaces
  • Next by thread: Re: Stupid Relationship question.
  • Index(es):
    • Date
    • Thread