Fixup for count
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class.pm
index ab9c53a..f59fc22 100644 (file)
@@ -7,8 +7,27 @@ use vars qw($VERSION);
 use base qw/DBIx::Class::Componentised Class::Data::Accessor/;
 
 sub mk_classdata { shift->mk_classaccessor(@_); }
+sub component_base_class { 'DBIx::Class' }
 
-$VERSION = '0.04999_02';
+# Always remember to do all digits for the version even if they're 0
+# 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.05999_04';
+
+sub MODIFY_CODE_ATTRIBUTES {
+    my ($class,$code,@attrs) = @_;
+    $class->mk_classdata('__attr_cache' => {}) unless $class->can('__attr_cache');
+    $class->__attr_cache->{$code} = [@attrs];
+    return ();
+}
+
+sub _attr_cache {
+    my $self = shift;
+    my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {};
+    my $rest = eval { $self->next::method };
+    return $@ ? $cache : { %$cache, %$rest };
+}
 
 1;
 
@@ -78,23 +97,27 @@ manual below.
 
 =head1 SEE ALSO
 
-=head2 L<DBIx::Class::Core> - DBIC Core Classes
+=over 4
 
-=head2 L<DBIx::Class::Manual> - User's manual
+=item L<DBIx::Class::Core> - DBIC Core Classes
 
-=head2 L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
+=item L<DBIx::Class::Manual> - User's manual
 
-=head2 L<DBIx::Class::DB> - database-level methods
+=item L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
 
-=head2 L<DBIx::Class::Table> - table-level methods
+=item L<DBIx::Class::Schema>
 
-=head2 L<DBIx::Class::Row> - row-level methods
+=item L<DBIx::Class::ResultSet>
 
-=head2 L<DBIx::Class::PK> - primary key methods
+=item L<DBIx::Class::ResultSource>
 
-=head2 L<DBIx::Class::ResultSet> - search result-set methods
+=item L<DBIx::Class::Row> - row-level methods
 
-=head2 L<DBIx::Class::Relationship> - relationships between tables
+=item L<DBIx::Class::PK> - primary key methods
+
+=item L<DBIx::Class::Relationship> - relationships between tables
+
+=back
 
 =head1 AUTHOR
 
@@ -102,22 +125,56 @@ Matt S. Trout <mst@shadowcatsystems.co.uk>
 
 =head1 CONTRIBUTORS
 
+Alexander Hartmaier <alex_hartmaier@hotmail.com>
+
 Andy Grundman <andy@hybridized.org>
 
+Andres Kievsky
+
+Brandon Black
+
 Brian Cassidy <bricas@cpan.org>
 
+Christopher H. Laco
+
+CL Kao
+
+Daisuke Murase <typester@cpan.org>
+
 Dan Kubb <dan.kubb-cpan@onautopilot.com>
 
 Dan Sully <daniel@cpan.org>
 
+Daniel Westermann-Clark <danieltwc@cpan.org>
+
 David Kamholz <dkamholz@cpan.org>
 
+Jesper Krogh
+
+Jess Robinson
+
 Jules Bean
 
+Justin Guenther <guentherj@agr.gc.ca>
+
 Marcus Ramberg <mramberg@cpan.org>
 
+Nigel Metheringham <nigelm@cpan.org>
+
 Paul Makepeace
 
+Robert Sedlacek <phaylon@dunkelheit.at>
+
+sc_ of irc.perl.org#dbix-class
+
+Scott McWhirter (konobi)
+
+Scotty Allen <scotty@scottyallen.com>
+
+Todd Lipcon
+
+Will Hawes
+
 =head1 LICENSE
 
 You may distribute this code under the same terms as Perl itself.