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

Commit 0907f1ef by Mick Hansen

Merge pull request #3713 from ackerdev/patch-issue-3712

Use primaryKeyField in Model#count
2 parents a3155ec8 313a431c
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!