| 3757 | // Loop and call set |
| 3758 | if (options.attributes) { |
| 3759 | const setKeys = data => { |
| 3760 | for (const k of data) { |
| 3761 | if (values[k] === undefined) { |
| 3762 | continue; |
| 3763 | } |
| 3764 | this.set(k, values[k], options); |
| 3765 | } |
| 3766 | }; |
| 3767 | setKeys(options.attributes); |
| 3768 | if (this.constructor._hasVirtualAttributes) { |
| 3769 | setKeys(this.constructor._virtualAttributes); |