All relationships should have an _rs method for exactly this issue. Try:
[% IF user.objects_rs.count %] ... [% END %]
FYI, this is a FAQ. (See "How do I use DBIx::Class objects in my TT templates?")
--
"Go up to the next female stranger you see and tell her that her "body is a wonderland."
My hypothesis is that she’ll be too busy laughing at you to even bother slapping you." (src)
In reply to Re: DBIx::Class and Template toolkit context problem
by LTjake
in thread DBIx::Class and Template toolkit context problem
by Cybris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |