X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=d6987196e562d30be42b8becdb244536677c942c;hb=58755bbaee2ccf9eb6e9d03b9e8a8a79aeda2ebe;hp=e35b53035e0cb18b6d8fa6c1e4f1b4eca1759151;hpb=bcb8f3ede412b94c02beae1278d7ddabeb91051a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index e35b530..d698719 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -24,7 +24,7 @@ sub component_base_class { 'DBIx::Class' } # i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports # brain damage and presumably various other packaging systems too -$VERSION = '0.08099_02'; +$VERSION = '0.08099_06'; $VERSION = eval $VERSION; # numify for warning-free dev releases @@ -68,28 +68,28 @@ Create a schema class called MyDB/Schema.pm: package MyDB::Schema; use base qw/DBIx::Class::Schema/; - __PACKAGE__->load_classes(); + __PACKAGE__->load_namespaces(); 1; Create a table class to represent artists, who have many CDs, in -MyDB/Schema/Artist.pm: +MyDB/Schema/Result/Artist.pm: - package MyDB::Schema::Artist; + package MyDB::Schema::Result::Artist; use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/Core/); __PACKAGE__->table('artist'); __PACKAGE__->add_columns(qw/ artistid name /); __PACKAGE__->set_primary_key('artistid'); - __PACKAGE__->has_many(cds => 'MyDB::Schema::CD'); + __PACKAGE__->has_many(cds => 'MyDB::Schema::Result::CD'); 1; A table class to represent a CD, which belongs to an artist, in -MyDB/Schema/CD.pm: +MyDB/Schema/Result/CD.pm: - package MyDB::Schema::CD; + package MyDB::Schema::Result::CD; use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/Core/); @@ -121,7 +121,7 @@ Then you can use these classes in your application's code: # Execute a joined query to get the cds. my @all_john_cds = $johns_rs->search_related('cds')->all; - # Fetch only the next row. + # Fetch the next available row. my $first_john = $johns_rs->next; # Specify ORDER BY on the query. @@ -217,6 +217,8 @@ bluefeet: Aran Deltac bricas: Brian Cassidy +caelum: Rafael Kitover + captainL: Luke Saunders castaway: Jess Robinson @@ -233,16 +235,18 @@ dkubb: Dan Kubb dnm: Justin Wheeler -draven: Marcus Ramberg - dwc: Daniel Westermann-Clark dyfrgi: Michael Leuchtenburg gphat: Cory G Watson +groditi: Guillermo Roditi + jesper: Jesper Krogh +jgoulah: John Goulah + jguenther: Justin Guenther jnapiorkowski: John Napiorkowski @@ -253,8 +257,12 @@ jshirley: J. Shirley konobi: Scott McWhirter +marcus: Marcus Ramberg + mattlaw: Matt Lawrence +michaelr: Michael Reddick + ned: Neil de Carteret nigel: Nigel Metheringham @@ -273,10 +281,20 @@ perigrin: Chris Prather phaylon: Robert Sedlacek +plu: Johannes Plunien + quicksilver: Jules Bean +rafl: Florian Ragwitz + rdj: Ryan D Johnson +ribasushi: Peter Rabbitson + +rjbs: Ricardo Signes + +robkinyon: Rob Kinyon + sc_: Just Another Perl Hacker scotty: Scotty Allen @@ -301,6 +319,8 @@ willert: Sebastian Willert zamolxes: Bogdan Lucaciu +norbi: Norbert Buchmuller + =head1 LICENSE You may distribute this code under the same terms as Perl itself.