Commit 6061be64d4c0c5dc1b26173f387a05ffe824a172
1 parent
4ba19f19
20.07.16
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
common/modules/product/models/Category.php
... | ... | @@ -215,7 +215,7 @@ class Category extends \yii\db\ActiveRecord |
215 | 215 | |
216 | 216 | public function beforeDelete() |
217 | 217 | { |
218 | - | |
218 | + CategoryName::deleteAll(['category_id' => $this->category_id]); | |
219 | 219 | if(!empty($this->products)){ |
220 | 220 | foreach($this->products as $product){ |
221 | 221 | $product->delete(); | ... | ... |