described schema better, and added note about when you want to use it
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / CDBICompat / HasA.pm
index 3010954..e35c221 100644 (file)
@@ -19,9 +19,6 @@ sub has_a {
     $self->inflate_column($col, \%args);
     return 1;
   }
-  my ($pri, $too_many) = keys %{ $f_class->_primaries };
-  $self->throw( "has_a only works with a single primary key; ${f_class} has more. try using a belongs_to relationship instead of Class::DBI compat rels" )
-    if $too_many;
 
   $self->belongs_to($col, $f_class);
   return 1;