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

Commit ac3acf58 by Jan Aagaard Meier

added omitNull to has many single linked

1 parent 8a262be3
Showing with 1 additions and 1 deletions
...@@ -18,7 +18,7 @@ module.exports = (function() { ...@@ -18,7 +18,7 @@ module.exports = (function() {
// clear the old associations // clear the old associations
oldAssociations.forEach(function(associatedObject) { oldAssociations.forEach(function(associatedObject) {
associatedObject[self.__factory.identifier] = null associatedObject[self.__factory.identifier] = self.options.omitNull ? '' : null
associatedObject.save() associatedObject.save()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!