• 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: Automatically create record in a to-one relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically create record in a to-one relationship


  • Subject: Re: Automatically create record in a to-one relationship
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 5 Jul 2005 19:07:29 -0700

It really ought to work if it is a mandatory to-one relationship. I've used it. Correctly set up, it does work.

That said, if you want to do this manually, override the awakeFromInsertion method on the parent, call super.awakeFromInsertion, check that it really did not create the child :-), and then create it yourself and set the relationship.

Chuck


On Jul 5, 2005, at 5:46 PM, Omar wrote:

Hi all,

I still cannot solve this problem so I was thinking of a workaround such
as use an event in ERXGenericRecord to create the mandatory entity in
the to-one relationship, I was thinking of using the willInsert as the
event for inserting the entity but I can't get that to work either.


What event can I use to create the entity in the relationship?

Thanks in advance,

Omar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________ 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: Automatically create record in a to-one relationship
      • From: Omar <email@hidden>
References: 
 >Re: Automatically create record in a to-one relationship (From: Omar <email@hidden>)

  • Prev by Date: Re: (some) Broken images in deployment
  • Next by Date: Package Question: java.util.zip
  • Previous by thread: Re: Automatically create record in a to-one relationship
  • Next by thread: Re: Automatically create record in a to-one relationship
  • Index(es):
    • Date
    • Thread