To-one relationship always returns a fault
To-one relationship always returns a fault
- Subject: To-one relationship always returns a fault
- From: Greg Hulands <email@hidden>
- Date: Fri, 30 Apr 2004 15:52:29 +1000
In my model I have two entities, one Product and the other
ProductImage. Currently there are no records in the ProductImage table
as I am just implementing this functionality. The only problem is that
Product always returns a fault for the image, eg product.image()
instead of returning null. In the model I have the Product owning the
image and have the relationship as optional.
How do I overcome this as I was trying to implement a helper method on
the product class
public boolean hasImage() {
return image() != null;
}
always returns true, when it should return false.
What am I doing wrong?
Any help is greatly appreciated.
Regards,
Greg
_______________________________________________
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.