On Mon, Apr 7, 2008 at 2:33 PM, Emily Heureux <[EMAIL PROTECTED]> wrote:
> Hi, I have a resultset call like this in my Catalyst application:
> $rs = [$c->model('DB::Table1)->search(
>
> { …
>
> },
>
> { join => [ …]
>
> }
>
> )];
> The reason for the brackets is, in my tt2 file, I can make a call directly
> to the table column:
>
> [% FOREACH result IN rs %]
>
> [% result.table1.column1 %]
>
> [% END %]
>
> and it works perfectly.
Don't stash an anonymous list, if you need the object list from the
resultset just call:
[% FOREACH result IN rs.all %]
further reading: perldoc DBIx::Class::ResultSet
--
edenc.vox.com
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]