[Catalyst] Forcing scalar context in TT?

Alex Povolotsky tarkhil at over.ru
Thu Dec 23 15:53:07 GMT 2010


I'm writing an application that needs to count some related objects

[% row.objects.count %] results in "select * from objects"
[% row.objects.scalar.count %] yields an error
[% row.search_related_rs('objects').count %] is UGLY

Do I have any better solution?


More information about the Catalyst mailing list