• 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: EOGenerator Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: EOGenerator Relationships
      • From: Florijan Stamenkovic <email@hidden>
    • Re: EOGenerator Relationships
      • From: Michael Kondratov <email@hidden>
References: 
 >EOGenerator Relationships (From: Michael Kondratov <email@hidden>)
 >Re: EOGenerator Relationships (From: David Avendasora <email@hidden>)
 >Re: EOGenerator Relationships (From: Florijan Stamenkovic <email@hidden>)
 >Re: EOGenerator Relationships (From: David Avendasora <email@hidden>)
 >Re: EOGenerator Relationships (From: Michael Kondratov <email@hidden>)

  • Prev by Date: Re: EOGenerator Relationships
  • Next by Date: Re: EOGenerator Relationships
  • Previous by thread: Re: EOGenerator Relationships
  • Next by thread: Re: EOGenerator Relationships
  • Index(es):
    • Date
    • Thread