X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FViewDepsBad%2FResult%2FAbaNameArtists.pm~;fp=t%2Flib%2FViewDepsBad%2FResult%2FAbaNameArtists.pm~;h=fc989f6fb98b912080bbe2a6072828aa3e4328a4;hb=51b31bbe7d3359237fd2eb5e1f4aadb133578f25;hp=0000000000000000000000000000000000000000;hpb=8a8525be6ae7f16a4dc9283008fd9ae71da36371;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/ViewDepsBad/Result/AbaNameArtists.pm~ b/t/lib/ViewDepsBad/Result/AbaNameArtists.pm~ new file mode 100644 index 0000000..fc989f6 --- /dev/null +++ b/t/lib/ViewDepsBad/Result/AbaNameArtists.pm~ @@ -0,0 +1,26 @@ +package # hide from PAUSE + ViewDeps::Result::AbaNameArtists; + +use strict; +use warnings; +use base 'DBIx::Class::Core'; + +__PACKAGE__->table_class('DBIx::Class::ResultSource::View'); +__PACKAGE__->table('aba_name_artists'); +__PACKAGE__->result_source_instance->view_definition( + "SELECT id,name FROM ab_name_artists WHERE name like 'aba%'" ); +__PACKAGE__->result_source_instance->deploy_depends_on( + ["ViewDeps::Result::AbNameArtists"] ); + +__PACKAGE__->add_columns( + id => { data_type => 'integer', is_auto_increment => 1 }, + name => { data_type => 'text' }, +); + +__PACKAGE__->set_primary_key('id'); + +__PACKAGE__->has_many( 'cds', 'ViewDeps::Result::CD', + { "foreign.artist" => "self.id" }, +); + +1;