[Dbix-class] user/friendship many-to-many relationship

Marc Mims marc at questright.com
Tue Apr 24 19:46:33 GMT 2007


* Tobias Kremer <list at funkreich.de> [070424 11:20]:
> But then you won't be able to tell who requested the friendship and who
> received the request. The good thing is, that this could be done without
> database triggers by overwriting DBIx::Class's insert method.

Just add another column, initiated_by, and set it to the id of the user
initiating the friendship.

	-Marc



More information about the Dbix-class mailing list