From: Matt S Trout Date: Tue, 18 Aug 2009 04:53:06 +0000 (+0100) Subject: remember to add the mixin class to our superclasses X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a010ebf979e38f071d4b13d56bb8b276b9505918;p=dbsrgits%2FDBIx-Class-ResultSource-MultipleTableInheritance.git remember to add the mixin class to our superclasses --- diff --git a/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm b/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm index d385727..6ff01e3 100644 --- a/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm +++ b/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm @@ -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) {