Without knowing more details about what DBIx:: module you are using I cannot say for sure, however I suspect that the issue you are seeing here is related to return context. Your find method maybe returns one thing in scalar context (a row_object) and another thing in list context? If that is the case TT might be calling it in list context in this case. I know I have been bitten by similar things while using TT and DBIx::Class. In general being very explicit in TT code is the best option.
In reply to Re: Methods in template toolkit
by stvn
in thread Methods in template toolkit
by dariusj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |