Change LB Value to link to entity instead of user

This commit is contained in:
Tom Bloor 2017-08-31 12:19:47 +01:00
parent 64cab5f17c
commit 7042020969

View file

@ -13,7 +13,7 @@ __PACKAGE__->add_columns(
is_auto_increment => 1,
is_nullable => 0,
},
"user_id" => {
"entity_id" => {
data_type => "integer",
is_foreign_key => 1,
is_nullable => 0,
@ -55,9 +55,9 @@ __PACKAGE__->belongs_to(
);
__PACKAGE__->belongs_to(
"user",
"Pear::LocalLoop::Schema::Result::User",
{ "foreign.id" => "self.user_id" },
"entity",
"Pear::LocalLoop::Schema::Result::Entity",
{ "foreign.id" => "self.entity_id" },
{
is_deferrable => 0,
join_type => "LEFT",