From: Matt S Trout Date: Fri, 29 Jun 2007 13:48:53 +0000 (+0000) Subject: remove RSM recipe X-Git-Tag: v0.08010~134 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=18cd96a034485e8a3438fe13683e825c981d0ab4;p=dbsrgits%2FDBIx-Class.git remove RSM recipe --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 3e5aa7b..4483f61 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -263,27 +263,6 @@ Then call your new method in your code: my $ordered_cds = $schema->resultset('CD')->search_cds_ordered(); - -=head3 Predefined searches without writing a ResultSet class - -Alternatively you can automatically generate a DBIx::Class::ResultSet -class by using the ResultSetManager component and tagging your method -as ResultSet: - - __PACKAGE__->load_components(qw/ ResultSetManager Core /); - - sub search_cds_ordered : ResultSet { - my ($self) = @_; - return $self->search( - {}, - { order_by => 'name DESC' }, - ); - } - -Then call your method in the same way from your code: - - my $ordered_cds = $schema->resultset('CD')->search_cds_ordered(); - =head2 Using joins and prefetch You can use the C attribute to allow searching on, or sorting your