From 89e1e18c3af2720bf13a74953fc563be71f93933 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 2 Dec 2016 14:51:44 +0200 Subject: [PATCH] add variantSku --- models/TaxGroup.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/models/TaxGroup.php b/models/TaxGroup.php index 841ce6e..a2a1a21 100755 --- a/models/TaxGroup.php +++ b/models/TaxGroup.php @@ -138,7 +138,7 @@ public function getCategories() { return $this->hasMany(Category::className(), [ 'id' => 'category_id' ]) - ->viaTable('tax_group_to_category', [ 'tax_group_id' => 'id' ])->inverseOf('taxGroups'); + ->viaTable('tax_group_to_category', [ 'tax_group_id' => 'id' ]); } /** @@ -172,8 +172,7 @@ */ public function getTaxOptions() { - return $this->hasMany(TaxOption::className(), [ 'tax_group_id' => 'id' ]) - ->inverseOf('taxGroup'); + return $this->hasMany(TaxOption::className(), [ 'tax_group_id' => 'id' ]); } /** -- libgit2 0.21.4