Stupid Relationship question.
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