|
|
@ -43,4 +43,11 @@ class AgentProduct extends BaseModel |
|
|
$this->attributes['channel_id'] = join(',', array_filter($value)); |
|
|
$this->attributes['channel_id'] = join(',', array_filter($value)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function setProductIdsAttribute($value) |
|
|
|
|
|
{ |
|
|
|
|
|
if (is_array($value)) { |
|
|
|
|
|
$this->attributes['product_ids'] = join(',', array_filter($value)); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |