@ -120,4 +120,12 @@ class ShopCategory extends \yii\db\ActiveRecord
{
return $this->hasOne(File::className(), ['id' => 'icon']);
}
public function beforeSave($insert)
if ($this->filter_attr != null && is_array($this->filter_attr)) {
$this->filter_attr = implode(',', $this->filter_attr);
return parent::beforeSave($insert); // TODO: Change the autogenerated stub