From 02b8486ed73ca4ed3a387574966e74192a40e813 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 2 Dec 2016 14:36:16 +0200 Subject: [PATCH] add variantSku --- models/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Category.php b/models/Category.php index 8c6c0b6..87e591b 100755 --- a/models/Category.php +++ b/models/Category.php @@ -151,7 +151,7 @@ */ public function getProductUnit() { - return $this->hasOne(ProductUnit::className(), [ 'id' => 'product_unit_id' ])->inverseOf('product'); + return $this->hasOne(ProductUnit::className(), [ 'id' => 'product_unit_id' ]); } /** -- libgit2 0.21.4