X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=bed13d204d8231da6a61bc44544c8aee61d03b74;hb=b9ecae395ab4301302e08c544dc3f5c16ac370b9;hp=0a68502129b8cecebc44e3897c30450ef3275886;hpb=d76e282ad6738c3e30809c7c39795a5db5719763;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 0a68502..bed13d2 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -8,13 +8,13 @@ use base qw/DBIx::Class::Componentised Class::Accessor::Grouped/; use DBIx::Class::StartupCheck; -sub mk_classdata { +sub mk_classdata { shift->mk_classaccessor(@_); } sub mk_classaccessor { my $self = shift; - $self->mk_group_accessors('inherited', $_[0]); + $self->mk_group_accessors('inherited', $_[0]); $self->set_inherited(@_) if @_ > 1; } @@ -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.08107'; $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 @@ -237,10 +239,16 @@ dwc: Daniel Westermann-Clark dyfrgi: Michael Leuchtenburg +frew: Arthur Axel "fREW" Schmidt + gphat: Cory G Watson groditi: Guillermo Roditi +ilmari: Dagfinn Ilmari MannsEker + +jasonmay: Jason May + jesper: Jesper Krogh jgoulah: John Goulah @@ -255,16 +263,24 @@ 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 +Nniuq: Ron "Quinn" Straight" + +norbi: Norbert Buchmuller + Numa: Dan Sully oyse: Øystein Torget @@ -275,13 +291,23 @@ 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 +ribasushi: Peter Rabbitson + +rjbs: Ricardo Signes + +robkinyon: Rob Kinyon sc_: Just Another Perl Hacker @@ -289,6 +315,8 @@ scotty: Scotty Allen semifor: Marc Mims +solomon: Jared Johnson + sszabo: Stephan Szabo teejay : Aaron Trevena @@ -305,6 +333,8 @@ wdh: Will Hawes willert: Sebastian Willert +wreis: Wallace Reis + zamolxes: Bogdan Lucaciu =head1 LICENSE