|
...
|
...
|
@@ -127,11 +127,11 @@ class Product extends Base |
|
|
|
}
|
|
|
|
|
|
|
|
public function setCategoryIdAttribute($value){
|
|
|
|
$this->attributes['category_id'] = Arr::arrToSet($value);
|
|
|
|
$this->attributes['category_id'] = ','.Arr::arrToSet($value).',';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCategoryIdAttribute($value){
|
|
|
|
return Arr::setToArr($value);
|
|
|
|
return Arr::setToArr(trim($value,','));
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setAttrIdAttribute($value){
|
...
|
...
|
|