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

Commit efe5c171 by Mick Hansen

only do map check if theres a single primary key

1 parent 06d0b64b
Showing with 4 additions and 1 deletions
...@@ -350,13 +350,16 @@ module.exports = (function() { ...@@ -350,13 +350,16 @@ module.exports = (function() {
}) })
delete result.__children delete result.__children
}, },
primaryKeyAttribute = includeOptions.daoFactory.primaryKeyAttribute, primaryKeyAttribute,
primaryKeyMap = {} primaryKeyMap = {}
// Ignore all include keys on main data // Ignore all include keys on main data
if (includeOptions.includeNames) { if (includeOptions.includeNames) {
calleeDataIgnore = calleeDataIgnore.concat(includeOptions.includeNames) calleeDataIgnore = calleeDataIgnore.concat(includeOptions.includeNames)
} }
if (includeOptions.daoFactory.primaryKeyAttributes.length === 1) {
primaryKeyAttribute = includeOptions.daoFactory.primaryKeyAttribute
}
data.forEach(function (row) { data.forEach(function (row) {
row = Dot.transform(row) row = Dot.transform(row)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!