Add documentation to SQLConnector.prototype.buildJoins

This commit is contained in:
Diogo Doreto 2015-11-11 15:47:26 -02:00
parent 7ac15dae0c
commit 68264d59ab
1 changed files with 6 additions and 0 deletions

View File

@ -1047,6 +1047,12 @@ SQLConnector.prototype.buildSelect = function(model, filter, options) {
return this.parameterize(selectStmt);
};
/**
* Build the SQL INNER JOIN clauses
* @param {string} model Model name
* @param {object} where An object for the where conditions
* @returns {ParameterizedSQL} The SQL INNER JOIN clauses
*/
SQLConnector.prototype.buildJoins = function(model, where) {
var modelDef = this.getModelDefinition(model);
var relations = modelDef.model.relations;