X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=32b58a126a71b41c958826ad729a1ffb06d9f0f3;hb=acdda5b21197d6fd849ef15e544b5fbae283649a;hp=5fd8a5f5ee37dc112cd8a4bd971500ed616fe26c;hpb=8c764dc7750678dbad25d20972ae9cf3c499e26d;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 5fd8a5f..32b58a1 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_04'; +$VERSION = '0.08102'; $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. @@ -207,6 +207,8 @@ andyg: Andy Grundman ank: Andres Kievsky +arcanez: Justin Hunter + ash: Ash Berlin bert: Norbert Csongradi @@ -217,7 +219,7 @@ bluefeet: Aran Deltac bricas: Brian Cassidy -captainL: Luke Saunders +caelum: Rafael Kitover castaway: Jess Robinson @@ -241,8 +243,14 @@ gphat: Cory G Watson groditi: Guillermo Roditi +ilmari: Dagfinn Ilmari MannsEker + +jasonmay: Jason May + jesper: Jesper Krogh +jgoulah: John Goulah + jguenther: Justin Guenther jnapiorkowski: John Napiorkowski @@ -253,16 +261,22 @@ jshirley: J. Shirley konobi: Scott McWhirter +lukes: Luke Saunders + marcus: Marcus Ramberg mattlaw: Matt Lawrence +michaelr: Michael Reddick + ned: Neil de Carteret nigel: Nigel Metheringham ningu: David Kamholz +norbi: Norbert Buchmuller + Numa: Dan Sully oyse: Øystein Torget @@ -273,18 +287,32 @@ penguin: K J Cheetham perigrin: Chris Prather +peter: Peter Collingbourne + 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 semifor: Marc Mims +solomon: Jared Johnson + sszabo: Stephan Szabo teejay : Aaron Trevena @@ -301,6 +329,8 @@ wdh: Will Hawes willert: Sebastian Willert +wreis: Wallace Reis + zamolxes: Bogdan Lucaciu =head1 LICENSE