Commit 89e1e18c3af2720bf13a74953fc563be71f93933

Authored by Administrator
1 parent a95e393e

add variantSku

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
models/TaxGroup.php
@@ -138,7 +138,7 @@ @@ -138,7 +138,7 @@
138 public function getCategories() 138 public function getCategories()
139 { 139 {
140 return $this->hasMany(Category::className(), [ 'id' => 'category_id' ]) 140 return $this->hasMany(Category::className(), [ 'id' => 'category_id' ])
141 - ->viaTable('tax_group_to_category', [ 'tax_group_id' => 'id' ])->inverseOf('taxGroups'); 141 + ->viaTable('tax_group_to_category', [ 'tax_group_id' => 'id' ]);
142 } 142 }
143 143
144 /** 144 /**
@@ -172,8 +172,7 @@ @@ -172,8 +172,7 @@
172 */ 172 */
173 public function getTaxOptions() 173 public function getTaxOptions()
174 { 174 {
175 - return $this->hasMany(TaxOption::className(), [ 'tax_group_id' => 'id' ])  
176 - ->inverseOf('taxGroup'); 175 + return $this->hasMany(TaxOption::className(), [ 'tax_group_id' => 'id' ]);
177 } 176 }
178 177
179 /** 178 /**