Hello,

 

How do I unset a foreign key relationship using Torque?  I have a USER table
with a field AUTHORITY_LEVEL_ID which has a FK relationship to the ID field
on the AUTHORITY table.  Very helpfully, Torque has consequently added
set/getAuthorityLevelId and set/getAuthorityLevel methods to the User class
(actually, to BaseUser).  AUTHORITY_LEVEL_ID is not a required field,
however.  If I have a User who has a related Authority Level, how do I
remove it?  When I try user.setAuthorityLevelId(null),
user.setAuthorityLevelId("'), or user.setAuthorityLevel(null), in all three
cases Torque throws a NullPointerException.  I suppose I can do it with a
query string sent to UserPeer.executeQuery, or something like that, but is
there a way to do it just with the methods on the User class?

 

Thanks!

Cheers,

David

 

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)

 

Reply via email to