diff --git a/src/base/NavItemType.php b/src/base/NavItemType.php index 90a36b36..2d44fa1c 100644 --- a/src/base/NavItemType.php +++ b/src/base/NavItemType.php @@ -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()]); } /**