Skip to content

Commit

Permalink
Revert changes on NavItemType
Browse files Browse the repository at this point in the history
  • Loading branch information
hbugdoll authored Mar 6, 2024
1 parent 14cbbd9 commit 34c55fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/NavItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract public function getContent();
*/
public function getNavItem()
{
return $this->hasOne(NavItem::class, ['id' => 'nav_item_id'])->where(['nav_item_type' => static::getNummericType()]);
return $this->hasOne(NavItem::class, ['nav_item_type_id' => 'id'])->where(['nav_item_type' => static::getNummericType()]);
}

/**
Expand Down

0 comments on commit 34c55fe

Please sign in to comment.