Commit 8851a0ed0d62c6b11fdaa83a7da9f04cb14d947b
1 parent
09ea7551
---
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
common/modules/product/models/Brand.php
... | ... | @@ -4,6 +4,7 @@ namespace common\modules\product\models; |
4 | 4 | |
5 | 5 | use common\behaviors\Slug; |
6 | 6 | use common\modules\rubrication\behaviors\ArtboxSynonymBehavior; |
7 | +use mongosoft\file\UploadBehavior; | |
7 | 8 | use Yii; |
8 | 9 | |
9 | 10 | /** |
... | ... | @@ -43,13 +44,7 @@ class Brand extends \yii\db\ActiveRecord |
43 | 44 | 'slugKeyName' => 'alias', |
44 | 45 | 'translit' => true |
45 | 46 | ], |
46 | - 'image' => [ | |
47 | - 'class' => UploadBehavior::className(), | |
48 | - 'attribute' => 'file', | |
49 | - 'scenarios' => ['insert', 'update'], | |
50 | - 'path' => '@webroot/upload/docs/{category.id}', | |
51 | - 'url' => '@web/upload/docs/{category.id}', | |
52 | - ], | |
47 | + | |
53 | 48 | ], |
54 | 49 | ]; |
55 | 50 | } | ... | ... |