Use fully-qualified result class names instead of source names in deploy_depends_on.
[dbsrgits/DBIx-Class.git] / t / lib / ViewDepsBad / Result / AbaNameArtistsAnd2010CDsWithManyTracks.pm
CommitLineData
51b31bbe 1package # hide from PAUSE
2 ViewDepsBad::Result::AbaNameArtistsAnd2010CDsWithManyTracks;
3
4use strict;
5use warnings;
6use base 'DBIx::Class::Core';
7
8__PACKAGE__->table_class('DBIx::Class::ResultSource::View');
9__PACKAGE__->table('aba_name_artists_and_2010_cds_with_many_tracks');
10__PACKAGE__->result_source_instance->view_definition(
11 "SELECT aba.id,aba.name,cd.title,cd.year,cd.number_tracks FROM aba_name_artists aba JOIN year_2010_cds_with_many_tracks cd on (aba.id = cd.artist)"
12);
13__PACKAGE__->result_source_instance->deploy_depends_on(
0edbc8f0 14 ["ViewDepsBad::Result::AbNameArtists","ViewDepsBad::Result::Year2010CDsWithManyTracks"] );
51b31bbe 15
16__PACKAGE__->add_columns(
17 id => { data_type => 'integer', is_auto_increment => 1 },
18 name => { data_type => 'text' },
19 title => { data_type => 'text' },
20 year => { data_type => 'integer' },
21 number_tracks => { data_type => 'integer' },
22);
23
24__PACKAGE__->set_primary_key('id');
25
261;