Commit ee3bf1ad918d5e2e56d25c5a39d4b3cb66c1b9d5

Authored by Administrator
1 parent b8f5bcc9

20.07.16

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
common/modules/product/models/Category.php
... ... @@ -221,7 +221,7 @@ class Category extends \yii\db\ActiveRecord
221 221 $product->delete();
222 222 }
223 223 }
224   - $this->unlinkAll('product_category');
  224 + $this->unlinkAll(ProductCategory::className());
225 225 CategoryName::deleteAll(['category_id' => $this->category_id]);
226 226 return true;
227 227 }
... ...