On Jan 22, 2008 11:40 AM, Ash Berlin <[EMAIL PROTECTED]> wrote:
> >> [% 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.
>
> No really, there is: 
> http://search.cpan.org/~ash/DBIx-Class-0.08008/lib/DBIx/Class/Relationship/Base.pm#search_related_rs

!!

i wonder why that method is implemented in Relationship::Base instead of
in ResultSet, where search_related is.  *sigh*

> (BTW that wasn't to say that your SCALAR patch isn't useful, jsut that
> there are otherways to achieve this in DBIC. Patch is a good idea in
> my view)

i understand.  and i thank you for your insight.  i thought i had spent due
diligence in attempting to uncover a way to do this completely inside of
DBIx::Class, but i guess i didn't dig deep enough.

-mike

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to