Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / ArtistUndirectedMap.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 DBICTest::Schema::ArtistUndirectedMap;
5efe4c79 3
4a233f30 4use warnings;
5use strict;
6
660cf1be 7use base qw/DBICTest::BaseResult/;
5efe4c79 8
9__PACKAGE__->table('artist_undirected_map');
0009fa49 10__PACKAGE__->add_columns(
11 'id1' => { data_type => 'integer' },
12 'id2' => { data_type => 'integer' },
13);
5efe4c79 14__PACKAGE__->set_primary_key(qw/id1 id2/);
15
e377d723 16__PACKAGE__->belongs_to( 'artist1', 'DBICTest::Schema::Artist', 'id1', { on_delete => 'RESTRICT', on_update => 'CASCADE'} );
b230b4be 17__PACKAGE__->belongs_to( 'artist2', 'DBICTest::Schema::Artist', 'id2', { on_delete => undef, on_update => undef} );
ff657a43 18__PACKAGE__->has_many(
19 'mapped_artists', 'DBICTest::Schema::Artist',
20 [ {'foreign.artistid' => 'self.id1'}, {'foreign.artistid' => 'self.id2'} ],
51c9ead2 21 { cascade_delete => 0 },
ff657a43 22);
23
5efe4c79 241;