Thanks for [subtly] pointing out the problem.  cascadeSave() did the trick. :)

I have the inserts and updates working well.  I'm dealing with an
event to remove an address.   Is my logic correct here?

//Get Address and Company
oAddress = AddressService.get( addressID );
oCompany = CompanyService.get( rc.companyID );

//Remove address from Company
oCompany.removeAddress( oAddress );

//Save company
oCompany.cascadeSave();

This is removing the address from the Join table but not removing the
address from the database completely.  Do I need to call
Transfer.delete() on the address after save of the Company?

Thanks again.

On Mon, Nov 2, 2009 at 5:07 PM, Jason Durham <[email protected]> wrote:
> I'm just using Transfer.save().
>
> Jason
>
> On Mon, Nov 2, 2009 at 5:04 PM, Mark Mandel <[email protected]> wrote:
>>
>> What does your company.save() do?
>>
>> Mark
>>
>> On Tue, Nov 3, 2009 at 10:02 AM, Jason Durham <[email protected]> wrote:
>>>
>>> These are the sequence of events in my handler...
>>>
>>> Form is submitted....
>>> Create new Address object
>>> Populate Address object
>>> Validate Address object
>>> Retrieve Company object
>>> Verify Address exists in Company and copy the new Address over existing [
>>> oTempAddress.copyValuesTo(oCompany.getAddress(addressIndex) ]
>>> Save Company
>>>
>>> If I dump oCompany.getAddress(addressIndex).getMemento() just before the
>>> save of the company, I see the new data from the form.  However,
>>> oCompany.save() doesn't seem to save the Address I just modified.  I'm gonna
>>> RTFM again just in case I missed something. :)
>>>
>>> Jason
>>>
>>
>>
>>
>> --
>> E: [email protected]
>> T: http://www.twitter.com/neurotic
>> W: www.compoundtheory.com
>>
>>
>> >>
>
>
>
> --
> Jason Durham
>



-- 
Jason Durham

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to