remember to add the mixin class to our superclasses
Matt S Trout [Tue, 18 Aug 2009 04:53:06 +0000 (05:53 +0100)]
lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm

index d385727..6ff01e3 100644 (file)
@@ -65,6 +65,9 @@ method add_additional_parent ($source) {
       {originally_defined_in => $source->name, %{$rel_info->{attrs}}},
     );
   }
+  { no strict 'refs';
+    push(@{$self->result_class.'::ISA'}, $source->result_class);
+  }
 }
 
 method _source_by_name ($name) {