0.3999_01 changes
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / PK / Auto.pm
index fd2531b..73abb33 100644 (file)
@@ -1,6 +1,6 @@
 package DBIx::Class::PK::Auto;
 
-use base qw/Class::Data::Inheritable/;
+use base qw/DBIx::Class::PK/;
 use strict;
 use warnings;
 
@@ -35,7 +35,7 @@ sub insert {
 
   # if all primaries are already populated, skip auto-inc
   my $populated = 0;
-  map { $populated++ if $self->$_ } $self->primary_columns;
+  map { $populated++ if defined $self->get_column($_) } $self->primary_columns;
   return $ret if ( $populated == scalar $self->primary_columns );
 
   my ($pri, $too_many) =