Remove underscore from _buildReplaceFields
*Remove underscore from _buildReplaceFields because it is a protected method subject to override by subclasses.
This commit is contained in:
parent
48931922c3
commit
b16f9e0169
|
@ -952,7 +952,7 @@ SQLConnector.prototype.buildFields = function(model, data, excludeIds) {
|
|||
* @param {Boolean} excludeIds Exclude id properties or not, default to false
|
||||
* @returns {{names: Array, values: Array, properties: Array}}
|
||||
*/
|
||||
SQLConnector.prototype._buildReplaceFields = function(model, data, excludeIds) {
|
||||
SQLConnector.prototype.buildReplaceFields = function(model, data, excludeIds) {
|
||||
var props = this.getModelDefinition(model).properties;
|
||||
var keys = Object.keys(props);
|
||||
return this._buildFieldsForKeys(model, data, keys, excludeIds);
|
||||
|
@ -1025,7 +1025,7 @@ SQLConnector.prototype.buildFieldsForReplace = function(model, data, excludeIds)
|
|||
if (excludeIds === undefined) {
|
||||
excludeIds = true;
|
||||
}
|
||||
var fields = this._buildReplaceFields(model, data, excludeIds);
|
||||
var fields = this.buildReplaceFields(model, data, excludeIds);
|
||||
return this._constructUpdateParameterizedSQL(fields);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue