X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FBaseResult.pm;h=65f90d185b747a3eb451734fa6049429910ca553;hb=10dd5c05fee5be6ff4d72e41ab0d7b51809fdb5a;hp=78de2a1f26b960bf38acc10da991051fcf208d01;hpb=660cf1be74795a5a5784f413741816413a724c1a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/BaseResult.pm b/t/lib/DBICTest/BaseResult.pm index 78de2a1..65f90d1 100644 --- a/t/lib/DBICTest/BaseResult.pm +++ b/t/lib/DBICTest/BaseResult.pm @@ -4,11 +4,29 @@ package #hide from pause use strict; use warnings; -use base qw/DBIx::Class/; -use DBICTest::BaseResultSet; +use base qw(DBICTest::Base DBIx::Class::Core); + +#use base qw/DBIx::Class::Relationship::Cascade::Rekey DBIx::Class::Core/; -__PACKAGE__->load_components (qw/Core/); __PACKAGE__->table ('bogus'); __PACKAGE__->resultset_class ('DBICTest::BaseResultSet'); +#sub add_relationship { +# my $self = shift; +# my $opts = $_[3] || {}; +# if (grep { $_ eq $_[0] } qw/ +# cds_90s cds_80s cds_84 artist_undirected_maps mapped_artists last_track +# /) { +# # nothing - join-dependent or non-cascadeable relationship +# } +# elsif ($opts->{is_foreign_key_constraint}) { +# $opts->{on_update} ||= 'cascade'; +# } +# else { +# $opts->{cascade_rekey} = 1 +# unless ref $_[2] eq 'CODE'; +# } +# $self->next::method(@_[0..2], $opts); +#} + 1;