diff --git a/common/modules/product/models/Brand.php b/common/modules/product/models/Brand.php index 5786e16..813e787 100755 --- a/common/modules/product/models/Brand.php +++ b/common/modules/product/models/Brand.php @@ -4,6 +4,7 @@ namespace common\modules\product\models; use common\behaviors\Slug; use common\modules\rubrication\behaviors\ArtboxSynonymBehavior; +use mongosoft\file\UploadBehavior; use Yii; /** @@ -43,13 +44,7 @@ class Brand extends \yii\db\ActiveRecord 'slugKeyName' => 'alias', 'translit' => true ], - 'image' => [ - 'class' => UploadBehavior::className(), - 'attribute' => 'file', - 'scenarios' => ['insert', 'update'], - 'path' => '@webroot/upload/docs/{category.id}', - 'url' => '@web/upload/docs/{category.id}', - ], + ], ]; } -- libgit2 0.21.4