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