The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package TwoPkHasManyDB::Schema::Result::RelatedItem2;

use strict;
use warnings;
use base 'DBIx::Class';

__PACKAGE__->load_components("Core");
__PACKAGE__->table("relateditem2");
__PACKAGE__->add_columns(
		"idcol",
		{ data_type => "INTEGER", is_auto_increment => 1,
		is_nullable => 0 },
		"item_id",
		{
		data_type => "integer",
		is_foreign_key => 1,
		is_nullable => 0,
		},

		);


__PACKAGE__->belongs_to(
		'item',
		'TwoPkHasManyDB::Schema::Result::Item',
		{ id => 'item_id'},
		);

__PACKAGE__->set_primary_key("idcol", "item_id");

1;