search for: my_member

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

Did you mean: _member
2006 Jan 09
6
has_and_belongs_to_many :self
...39;, :association_foreign_key => ''buddy_id'' end You can see that a member can have any other member as a "buddy"; these relationships are held in the table members_have_buddies (member_id, buddy_id). So far, so good. I have a member "my_member", that has 3 other members marked as buddies, so I got 3 entries in the members_have_buddies table. When I delete my_member, then the 3 entries in the table are also deleted, as I expect it to do. But when I delete one of the 3 other members, that are marked as members, then the related ent...