On Jan 22, 2008 3:38 AM, Ash Berlin <[EMAIL PROTECTED]> wrote: > Yes wantarray is annoying. But oh look, its almost as if DBIx::Class users > use TT to. I point you at search_rs:
i already know about search_rs. > From DBIx::Class::Relationship: > > Three methods are created when you create a has_many relationship. The > first method is the expected accessor method, C<$accessor_name()>. The > second is almost exactly the same as the accessor method but "_rs" is > added to the end of the method name. i did not, however, know about this. > These features have been in DBIx::Class since about mid-2006. > > [% category.products_rs.search_related_rs('authorizations'). > magazine_rs.trade_rs.collecting_rs.count %] > > Should do the same job. no, it won't, because there is not a search_related_rs method. > For future reference, the DBIx::Class mailing list is at > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class i'm already subscribed to that list. thank you, though. -mike _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates