search for: befriendee_id

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

2008 Nov 20
3
Any progress on undirected self-referential many to many relationships?
...s: has_many :initiated_friendships, :foreign_key =>''befriender_id'', :class_name => ''Friendship'', :dependent => :destroy has_many :received_friendships, :foreign_key =>''befriendee_id'', :class_name => ''Friendship'', :dependent => :destroy has_many :friends, :through=>union (:received_friendships,:initiated_friendships) --~--~---------~--~----~------------~-------~--~----...