Subject: | minor documentation error |
Date: | Sat, 31 Oct 2009 18:47:55 +0100 |
To: | bug-Catalyst-Model-DBIC-Schema [...] rt.cpan.org |
From: | David Schmidt <david.schmidt [...] fm5.at> |
Hi, there is a missing semicolon right after "use base
qw/DBIx::Class/" Synopsis, Heading 2. Create some classes ...
I'll put 3 stars (***) where the error is
david
SYNOPSIS ^
Manual creation of a DBIx::Class::Schema and a Catalyst::Model::DBIC::Schema:
1. Create the DBIx:Class schema in MyApp/Schema/FilmDB.pm:
package MyApp::Schema::FilmDB;
use base qw/DBIx::Class::Schema/;
__PACKAGE__->load_classes(qw/Actor Role/);
2. Create some classes for the tables in the database, for example
an Actor in MyApp/Schema/FilmDB/Actor.pm:
package MyApp::Schema::FilmDB::Actor;
use base qw/DBIx::Class/***
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('actor');
...
--
David Schmidt | http://www.fm5.at