Change LB Value to link to entity instead of user
This commit is contained in:
parent
64cab5f17c
commit
7042020969
1 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
Reference in a new issue