[Catalyst] TT2 list context and DBIx::Class resultsets: solved?
Matt S Trout
dbix-class at trout.me.uk
Thu Jun 22 15:56:02 CEST 2006
Michele Beltrame wrote:
> Hello!
>
> While investigating the (usual) problem that I always get arrays instead
> of ResultSet objects when exploring DBIx::Class related tables in TT2, I
> came across the Template::Stash::Context module, which is bundled in TT.
> By using a view defined this way:
>
> [% my_rs = album.songs.scalar %]
As of DBIC 0.07 you'll be able to do [% my_rs = album.songs_rs %]
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list