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

Commit 60d7304c by yanickouellet

Fix eager loading bug: associations with primary key of 0 were not inclunded

1 parent 3cfa2af6
Showing with 1 additions and 1 deletions
......@@ -249,7 +249,7 @@ module.exports = (function() {
includeValidated: true,
raw: options.raw
})
, isEmpty = !Utils.firstValueOfHash(daoInstance.identifiers)
, isEmpty = Utils.firstValueOfHash(daoInstance.identifiers) === null
if (association.isSingleAssociation) {
accessor = Utils.singularize(accessor, self.sequelize.language)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!