Displaying 1 result from an estimated 1 matches for "relnshiptyp".
Did you mean:
relnshiptype
2006 Mar 13
2
HowToHandleMultipleRelationshipsBetweenTables?
...ere one of the tables contains two columns that
reference the id of the other.
This problem is partially described in the "HowTo..." with the topic
title above.
My model looks like this:
class Relationship < ActiveRecord::Base
belongs_to :relationshiptype, :foreign_key => "relnshiptype"
belongs_to :relationshiptype, :foreign_key => "inverserelnshiptype"
end
It doesn''t work because I think you can''t specify the same model
valiable? "relationshiptype" more than once.
The table is "relationshiptype" and the Class is theref...