search for: gateclockemployee

Displaying 1 result from an estimated 1 matches for "gateclockemployee".

2006 Oct 30
2
It this possible: finder_sql-like behavior for belongs_to?
...s, but this particular has_many/belongs_to association needs to support different ones. I''ve attached to code at the end of this email. Suffice it to say I need to use the standard "id" columns in most associations within the application, but for this particular MajicEmployee to GateClockEmployee relationship, I need to use two non-standard columns for joining. The :finder_sql option solves this problem for me on the has_many side, but belongs_to doesn''t seem to support :finder_sql (although I''ve included it in the below code to illustrate what I''m trying to do)....