[Solar-talk] Der Models is On Fire

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Oct 4 16:24:21 CDT 2007


On 10/4/07, Kilbride, James P. wrote:
> And how would, if I had the tables autocreated, force it to on the A_B_Link
> table ONLY use A_id + B_id as the primary key? I mean there isn't any reason
> for there to be a seperate ID for the A,B pair right? Would I have to
> overload some of the solar classes to prevent this?

I guess you'd have to overload several places because it is not
prepared to have fetch's and relationships based on multiple primary
keys. It is the cost for all the magic it provides, although I'm not
sure if it would require the amount of changes I think it would.

For convenience (or laziness) I have things like 'id', 'A_id' and
'B_id' in intermediate tables. Yes, the 'id' key would be unnecessary
in an ideal world, but I think this is a fair price.

-- rodrigo


More information about the Solar-talk mailing list