[Bast-commits] r3552 - trunk/DBIx-Class/lib/DBIx/Class/Manual
matthewt at dev.catalyst.perl.org
matthewt at dev.catalyst.perl.org
Fri Jun 29 14:48:54 GMT 2007
Author: matthewt
Date: 2007-06-29 14:48:53 +0100 (Fri, 29 Jun 2007)
New Revision: 3552
Modified:
trunk/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod
Log:
remove RSM recipe
Modified: trunk/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod
===================================================================
--- trunk/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod 2007-06-29 08:29:41 UTC (rev 3551)
+++ trunk/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod 2007-06-29 13:48:53 UTC (rev 3552)
@@ -263,27 +263,6 @@
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<join> attribute to allow searching on, or sorting your
More information about the Bast-commits
mailing list