Commit 6383abf9b4439045108f3cbcf5086e26f6e0cf97

Authored by Administrator
1 parent ad0eb49e

add variantSku

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
models/Product.php
... ... @@ -429,7 +429,7 @@
429 429 public function getCategories()
430 430 {
431 431 return $this->hasMany(Category::className(), [ 'id' => 'category_id' ])
432   - ->viaTable('product_category', [ 'product_id' => 'id' ])->inverseOf('products');
  432 + ->viaTable('product_category', [ 'product_id' => 'id' ]);
433 433 }
434 434  
435 435 /**
... ...