Looking at: http://search.cpan.org/~frew/DBIx-Class-0.08124/lib/DBIx/Class/Manual/Cookbook.pod#Dynamic_Sub-classing_DBIx::Class_proxy_classes
Both the User and Admin classes have the same source, so $row->result_source->source_name always returns 'User'. Is there a way to set the source on the Admin class so that $user->result_source->source_name still returns 'User' but $admin->result_source->source_name returns 'Admin'? Or is it better to create a method in the base result class, say, $row->class_moniker that pulls the name out of the row's class? -- Bill Moseley [email protected]
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
