Re: EOGenerator Relationships
Re: EOGenerator Relationships
- Subject: Re: EOGenerator Relationships
- From: Mike Schrag <email@hidden>
- Date: Wed, 17 Sep 2008 11:11:51 -0400
I've tried changing Invoice method from setInvoiceStatusRelationship(InvoiceStatus value) to setInvoiceStatus(InvoiceStatus value)
Now setInvoiceStatus in Invoice does get exceuted, however I am not able to call super.setInvoiceStatusRelationship(value) because they start calling each other!!
If you're not using Wonder's automatic inverse relationship stuff, then depending on how you bind this value, it will effect what gets called. the setXxxRelationship methods add to both sides of relationship with key. They are not, however, called if you just bind these values to a form element (like a WOPopUpButton selection binding). If you want to catch that, you need to override setInvoiceStatus. You should never call super.setXxxRelationship from setXxx, though, or you're just asking for infinite loops. You should be able to override setXxx and call super.setXxx at the end ONLY and not override the setXxxRelationship method, but it's been a while since I've had automatic inverse relationship stuff turned off, so YMMV.
ms |
_______________________________________________
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