"(Note, calling user.getAddress().delete() will delete the user because the user can't exist without the address, but calling user.delete() will not delete the address)"
What happen when there is an object that hasOne User? will that objectRecord be also deleted when you call user.getAddress().delete() ? Since user cannot exist without address, that object wouldn't live either... "On the user, if you call setAddressId(123), next time you call getAddress it will reflect the new address. If you pass a new address into setAddress(), getAddressId() will reflect the ID of that address. If you pass an empty string into setAddressId the address will be removed from the user." perfect Doug,does this: User.getAddressIterator().add(someAddress) User.save() also save the relationship in the UserAddress table? "Let's say you're using the address/useraddress/user linking relationship above. You call user.getAddressIterator() From the AddressIterator you can call getLinkIterator which will return the results of user.getAddressIterator from the user." I didn't catch this one... João Fernandes -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
<<winmail.dat>>

