Replaced deprecated \'colname DESC' order_by syntax with { -desc => 'colname' } syntax.
Norbert Buchmuller [Wed, 2 Sep 2009 02:30:13 +0000 (04:30 +0200)]
lib/DBIx/Class/Manual/Cookbook.pod

index c2a64f3..5a9e75d 100644 (file)
@@ -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