| @@ 34-48 (lines=15) @@ | ||
| 31 | } |
|
| 32 | ||
| 33 | /** {@inheritdoc} */ |
|
| 34 | public function save(array $fieldNames = []) |
|
| 35 | { |
|
| 36 | $fieldNames = array_intersect($fieldNames, [ |
|
| 37 | 'name', |
|
| 38 | 'entity_id', |
|
| 39 | 'scope', |
|
| 40 | 'hot', |
|
| 41 | 'deal_tags', |
|
| 42 | 'contact_ids', |
|
| 43 | 'source_id', |
|
| 44 | 'stage', |
|
| 45 | ]); |
|
| 46 | ||
| 47 | return parent::save($fieldNames); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| @@ 35-49 (lines=15) @@ | ||
| 32 | } |
|
| 33 | ||
| 34 | /** {@inheritdoc} */ |
|
| 35 | public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true) |
|
| 36 | { |
|
| 37 | $fieldNames = array_intersect($fieldNames, [ |
|
| 38 | 'name', |
|
| 39 | 'entity_id', |
|
| 40 | 'scope', |
|
| 41 | 'hot', |
|
| 42 | 'deal_tags', |
|
| 43 | 'contact_ids', |
|
| 44 | 'source_id', |
|
| 45 | 'stage', |
|
| 46 | ]); |
|
| 47 | ||
| 48 | return parent::create($resource, $fieldNames, $useKey); |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||