From 20155826372079d8f38cbbb0ae0bc1d10a83ee4c Mon Sep 17 00:00:00 2001 From: John Napiorkowski Date: Mon, 16 May 2011 15:25:07 -0400 Subject: [PATCH] fixed incorrect join condition on a relationship which dies on newer and more strict DBIC versions --- t/lib/DBSchema/Result/Personality.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/DBSchema/Result/Personality.pm b/t/lib/DBSchema/Result/Personality.pm index 3284fa1..b4d2ac9 100644 --- a/t/lib/DBSchema/Result/Personality.pm +++ b/t/lib/DBSchema/Result/Personality.pm @@ -9,7 +9,7 @@ __PACKAGE__->load_components( "PK::Auto", "Core" ); __PACKAGE__->table("personality"); __PACKAGE__->add_columns( "user_id" => { data_type => 'integer' }, ); __PACKAGE__->set_primary_key("user_id"); -__PACKAGE__->has_one( 'user', 'DBSchema::Result::User', {'user_id' => 'foreign.id'}, ); +__PACKAGE__->has_one( 'user', 'DBSchema::Result::User', {'foreign.id' => 'self.user_id'}, ); 1; -- 2.45.2