不要怂,就是干,撸起袖子干!

Commit 6212337f by José Moreira

Solve conflicts of rename daoFactory on my commits Again

1 parent a22ce900
...@@ -788,12 +788,7 @@ module.exports = (function() { ...@@ -788,12 +788,7 @@ module.exports = (function() {
joinQueryItem += joinType + self.quoteTable(table, as) + " ON " + joinOn joinQueryItem += joinType + self.quoteTable(table, as) + " ON " + joinOn
if (include.where) { if (include.where) {
<<<<<<< HEAD
joinQueryItem += " AND " + ( where = self.getWhereConditions(include.where, self.sequelize.literal(self.quoteIdentifier(as)), include.model, whereOptions) ) joinQueryItem += " AND " + ( where = self.getWhereConditions(include.where, self.sequelize.literal(self.quoteIdentifier(as)), include.model, whereOptions) )
=======
joinQueryItem += " AND " + ( where = self.getWhereConditions(include.where, self.sequelize.literal(self.quoteIdentifier(as)), include.daoFactory, whereOptions) )
>>>>>>> FETCH_HEAD
// If its a multi association we need to add a where query to the main where (executed in the subquery) // If its a multi association we need to add a where query to the main where (executed in the subquery)
if (subQuery && association.isMultiAssociation && include.required) { if (subQuery && association.isMultiAssociation && include.required) {
......
...@@ -1539,13 +1539,8 @@ module.exports = (function() { ...@@ -1539,13 +1539,8 @@ module.exports = (function() {
// otherwise this code will never run on includes of a already conditionable where // otherwise this code will never run on includes of a already conditionable where
if ( options.include && options.include.length ) { if ( options.include && options.include.length ) {
options.include.forEach(function(include) { options.include.forEach(function(include) {
<<<<<<< HEAD:lib/model.js
if( typeof include == 'object' && include.model ){ if( typeof include == 'object' && include.model ){
paranoidClause.call( include.model, include ) paranoidClause.call( include.model, include )
=======
if( typeof include == 'object' && include.daoFactory || include.model ){
paranoidClause.call( include.daoFactory || include.model, include )
>>>>>>> FETCH_HEAD:lib/dao-factory.js
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!