Commit 02b8486ed73ca4ed3a387574966e74192a40e813
1 parent
60ebb441
add variantSku
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
models/Category.php
... | ... | @@ -151,7 +151,7 @@ |
151 | 151 | */ |
152 | 152 | public function getProductUnit() |
153 | 153 | { |
154 | - return $this->hasOne(ProductUnit::className(), [ 'id' => 'product_unit_id' ])->inverseOf('product'); | |
154 | + return $this->hasOne(ProductUnit::className(), [ 'id' => 'product_unit_id' ]); | |
155 | 155 | } |
156 | 156 | |
157 | 157 | /** | ... | ... |