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

Commit 313a431c by Nick Acker

Use primaryKeyField in Model#count

fixes #3712
1 parent 3e85d250
Showing with 1 additions and 1 deletions
...@@ -856,7 +856,7 @@ module.exports = (function() { ...@@ -856,7 +856,7 @@ module.exports = (function() {
var col = '*'; var col = '*';
if (options.include) { if (options.include) {
col = this.name + '.' + this.primaryKeyAttribute; col = this.name + '.' + this.primaryKeyField;
expandIncludeAll.call(this, options); expandIncludeAll.call(this, options);
validateIncludedElements.call(this, options); validateIncludedElements.call(this, options);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!