From a95e393eec0e39af8aa07e8881e30d1b258db0be Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 2 Dec 2016 14:41:02 +0200 Subject: [PATCH] add variantSku --- models/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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