| 3631 | // Loop and call set |
| 3632 | if (options.attributes) { |
| 3633 | const setKeys = data => { |
| 3634 | for (const k of data) { |
| 3635 | if (values[k] === undefined) { |
| 3636 | continue; |
| 3637 | } |
| 3638 | this.set(k, values[k], options); |
| 3639 | } |
| 3640 | }; |
| 3641 | setKeys(options.attributes); |
| 3642 | if (this.constructor._hasVirtualAttributes) { |
| 3643 | setKeys(this.constructor._virtualAttributes); |