[Bast-commits] r4516 -
trunk/DBIx-Class-Tutorial/lib/DBIx/Class/Tutorial
castaway at dev.catalyst.perl.org
castaway at dev.catalyst.perl.org
Wed Jun 25 13:41:32 BST 2008
Author: castaway
Date: 2008-06-25 13:41:31 +0100 (Wed, 25 Jun 2008)
New Revision: 4516
Modified:
trunk/DBIx-Class-Tutorial/lib/DBIx/Class/Tutorial/Part3.pod
Log:
Update to not create the resultset class in the schema subdir.
Remove link to non-existant Part4.
Modified: trunk/DBIx-Class-Tutorial/lib/DBIx/Class/Tutorial/Part3.pod
===================================================================
--- trunk/DBIx-Class-Tutorial/lib/DBIx/Class/Tutorial/Part3.pod 2008-06-25 12:35:15 UTC (rev 4515)
+++ trunk/DBIx-Class-Tutorial/lib/DBIx/Class/Tutorial/Part3.pod 2008-06-25 12:41:31 UTC (rev 4516)
@@ -175,7 +175,7 @@
Row objects. To add methods to entire resultsets, you will first need
to subclass L<DBIx::Class::ResultSet>.
- package Breadcrumbs::Schema::Path::ResultSet;
+ package Breadcrumbs::ResultSet::Path;
use base 'DBIx::Class::ResultSet';
sub check_paths {
@@ -194,16 +194,19 @@
call C<resultset_class> in your Result class.
## Set the new resultset class, in Breadcrumbs::Schema::Path:
- __PACKAGE__->resultset_class('Breadcrumbs::Schema::Path::ResultSet');
+ __PACKAGE__->resultset_class('Breadcrumbs::ResultSet::Path');
+Make sure you don't create the new C<ResultSet> class in the
+namespace/directory underneath the existing Schema. This will cause
+L<DBIx::Class::Schema/load_classes> to attempt to load it as if it
+were a Result class. The result will not be good.
+
=head1 CONCLUSIONS
=head1 EXERCISES
=head1 WHERE TO GO NEXT
-L<Part 4 of the tutorial|DBIx::Class::Tutorial::Part4>
-
=head1 AUTHOR
Jess Robinson <castaway at desert-island.me.uk>
More information about the Bast-commits
mailing list