Howdy. I've got as schema which includes a table VOTE_RECORD having a primary key which is also a foreign key (from the table AUTH_DATA).
Even if I do a voteRecord.setAuthData() call, AUTH_ID is unset in the
generated SQL; as a result, insert fails.
It looks to me like this is be happening because of a test in
BaseVoteRecordPeer.buildCriteria(VoteRecord):
if ( !obj.isNew() )
criteria.add( AUTH_ID, obj.getAuthId() );
Hence, the criteria object passed to BaseVoteRecordPeer(Criteria,
DBConnection) doesn't include the primary key even though the user
wishes to specify it. To me, this looks like a bug.
Is there something I'm overlooking here? Anything straightforward that
can be done about this? (I'm using Torque 3.0b1-dev).
Thanks!
msg06890/pgp00000.pgp
Description: PGP signature
