Hi, I have some classes, that have a DBIx::Class::Row object a one of it's attributes. What is the best way to delegate all methods (acessing columns an relations ) to this object ? In my current, non Moose implementation I'm doing this with AUTOLOAD, there I'm testing if the object can the required method and call it.
The docs mention that either a role or a subref can be specified as the value for the delegates param. Now, since my row objects are from different resultsets, the methods aren't always the same, so I cannot see, how a role could help but, but in a sub I could introspect the row object. How will that subref be called ? Or is there better solution ? Rolf Schaufelberger