* Update the underlying data value * * @param {string} key key to set in instance data store * @param {any} value new value for given key *
(key, value)
| 3491 | * |
| 3492 | */ |
| 3493 | setDataValue(key, value) { |
| 3494 | const originalValue = this._previousDataValues[key]; |
| 3495 | |
| 3496 | if (!_.isEqual(value, originalValue)) { |
| 3497 | this.changed(key, true); |
| 3498 | } |
| 3499 | |
| 3500 | this.dataValues[key] = value; |
| 3501 | } |
| 3502 | |
| 3503 | /** |
| 3504 | * If no key is given, returns all values of the instance, also invoking virtual getters. |