From: Justin Hunter Date: Fri, 15 Jun 2012 19:34:19 +0000 (-0400) Subject: fix broken syntax X-Git-Tag: v0.08197~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e11ba0a6468bee185050fb164ae3aa1cbdf1895;p=dbsrgits%2FDBIx-Class.git fix broken syntax --- diff --git a/lib/DBIx/Class/Manual/Intro.pod b/lib/DBIx/Class/Manual/Intro.pod index 1d305a7..eebc98c 100644 --- a/lib/DBIx/Class/Manual/Intro.pod +++ b/lib/DBIx/Class/Manual/Intro.pod @@ -397,7 +397,7 @@ attributes: my @albums = My::Schema->resultset('Album')->search( { artist => 'Bob Marley' }, - { rows => 2, order_by => 'year DESC' } + { rows => 2, order_by => { -desc => 'year' } } ); C<@albums> then holds the two most recent Bob Marley albums.