Hello everyone,
I'm trying to use the hack defined in the FAQ for "sort my results
based on fields I've aliased using as" with the following statement
which includes a count.
$schema->resultset("MyTable")->search(undef, { select => [ { count =>
'list_id'} ], as => [ 'list_count' ] });
Can someone give me the syntax for this statement for the hack? I've
tried just about every combination of inserting \' as list_count' but
nothing seems to work.
Any help is greatly appreciated,
Kevin
--
Kevin Old
[EMAIL PROTECTED]
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/