DBIO
view release on metacpan or search on metacpan
lib/DBIO/Test/Schema/ArtistUndirectedMap.pm view on Meta::CPAN
package DBIO::Test::Schema::ArtistUndirectedMap;
# ABSTRACT: Test result class for the artist_undirected_map table
use warnings;
use strict;
use base qw/DBIO::Test::BaseResult/;
__PACKAGE__->table('artist_undirected_map');
__PACKAGE__->add_columns(
'id1' => { data_type => 'integer' },
'id2' => { data_type => 'integer' },
);
__PACKAGE__->set_primary_key(qw/id1 id2/);
__PACKAGE__->belongs_to( 'artist1', 'DBIO::Test::Schema::Artist', 'id1', { on_delete => 'RESTRICT', on_update => 'CASCADE'} );
__PACKAGE__->belongs_to( 'artist2', 'DBIO::Test::Schema::Artist', 'id2', { on_delete => undef, on_update => undef} );
__PACKAGE__->has_many(
'mapped_artists', 'DBIO::Test::Schema::Artist',
[ {'foreign.artistid' => 'self.id1'}, {'foreign.artistid' => 'self.id2'} ],
{ cascade_delete => 0 },
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
DBIO::Test::Schema::ArtistUndirectedMap - Test result class for the artist_undirected_map table
=head1 VERSION
version 0.900000
=head1 AUTHOR
DBIO & DBIx::Class Authors
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2026 DBIO Authors
Portions Copyright (C) 2005-2025 DBIx::Class Authors
Based on DBIx::Class, heavily modified.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 1.594 second using v1.01-cache-2.11-cpan-7fcb06a456a )