From: Norbert Buchmuller Date: Wed, 2 Sep 2009 02:30:13 +0000 (+0200) Subject: Replaced deprecated \'colname DESC' order_by syntax with { -desc => 'colname' } syntax. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6c20def67453a05c9f955bf6ee4258d80c01385;p=dbsrgits%2FDBIx-Class-Historic.git Replaced deprecated \'colname DESC' order_by syntax with { -desc => 'colname' } syntax. --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index c2a64f3..5a9e75d 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1071,7 +1071,7 @@ create the relationship. To order C<< $book->pages >> by descending page_number, create the relation as follows: - __PACKAGE__->has_many('pages' => 'Page', 'book', { order_by => \'page_number DESC'} ); + __PACKAGE__->has_many('pages' => 'Page', 'book', { order_by => { -desc => 'page_number'} } ); =head2 Filtering a relationship result set