From 4c251a1e7b85985273f4b9429a398d9d84a15ffc Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 2 Dec 2016 14:40:50 +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 3ce1249..67676b2 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' ]); + ->viaTable('product_category', [ 'product_id' => 'id' ])->inverseOf('products'); } /** -- libgit2 0.21.4