[Dbix-class] Backrefernce to parent object

Rolf Schaufelberger rs at plusw.de
Mon Oct 4 07:32:48 GMT 2010


Hi, 

suppose  I have a table  users  and a table address with a many-to many relation between users and addresses.

Now when I fetch a user object and I call an address method    like   $user->address({  search args})->first->do_something()
Is there a way   in do_someting to access  the calling user object ?

(aside from the aspect, whether this is a good design I'm curious  how to do this )


Rolf Schaufelberger








More information about the DBIx-Class mailing list