diff --git a/models/Product.php b/models/Product.php index 67676b2..3ce1249 100755 --- a/models/Product.php +++ b/models/Product.php @@ -429,7 +429,7 @@ public function getCategories() { return $this->hasMany(Category::className(), [ 'id' => 'category_id' ]) - ->viaTable('product_category', [ 'product_id' => 'id' ])->inverseOf('products'); + ->viaTable('product_category', [ 'product_id' => 'id' ]); } /** -- libgit2 0.21.4