# 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.04999_04';
+$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;
=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
=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
-CL Kao
+Robert Sedlacek <phaylon@dunkelheit.at>
-Jess Robinson
+sc_ of irc.perl.org#dbix-class
-Marcus Ramberg
+Scott McWhirter (konobi)
-Will Hawes
+Scotty Allen <scotty@scottyallen.com>
Todd Lipcon
-Daniel Westermann-Clark <danieltwc@cpan.org>
-
-Alexander Hartmaier <alex_hartmaier@hotmail.com>
-
-Zbigniew Lukasiak
+Will Hawes
=head1 LICENSE