MCPcopy
hub / github.com/sequelize/sequelize / setKeys

Method setKeys

src/model.js:3759–3766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected