Displaying 1 result from an estimated 1 matches for "majic_entri".
Did you mean:
majic_entries
2006 Oct 30
2
It this possible: finder_sql-like behavior for belongs_to?
...I''ve included it in
the below code to illustrate what I''m trying to do).
Can anyone tell me how I can get the belongs_to side working so I can query
from that side as well?
Any help will be GREATLY appreciated.
Thanks!
JB
class MajicEmployee < ActiveRecord::Base
has_many :majic_entries
has_many :gate_clock_employees,
:finder_sql=>''select * from gate_clock_employees where
emplasci=#{number}''
end
class GateClockEmployee < ActiveRecord::Base
has_many :gate_clock_entries
belongs_to :majic_employee, :finder_sql=>''select * from ma...