[Dbix-class] How to setup a complicated (bilateral) relationship?

Ronald J Kimball rkimball+dbixclass at pangeamedia.com
Fri Jun 22 18:21:53 GMT 2007

Steve Francia wrote:

> I have two tables user and friends, friends is a join table that joins 
> users to users. In my system, friendship is bilateral, meaning to have a 
> friend is to be one.
> I worked through the reciprocal relationship alright, but the bilateral 
> part has me stumped.

My solution for this situation was to simply have two rows in the friend 
table for each friendship.


More information about the Dbix-class mailing list