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

Commit b0c586c1 by Sascha Depold

removed check for omitNull

1 parent 6ae054fd
...@@ -22,7 +22,7 @@ module.exports = (function() { ...@@ -22,7 +22,7 @@ module.exports = (function() {
// clear the old associations // clear the old associations
oldAssociations.forEach(function(associatedObject) { oldAssociations.forEach(function(associatedObject) {
associatedObject[self.__factory.identifier] = /*options.omitNull ? '' :*/ null associatedObject[self.__factory.identifier] = null
chainer.add(associatedObject.save()) chainer.add(associatedObject.save())
}) })
......
...@@ -54,7 +54,7 @@ module.exports = (function() { ...@@ -54,7 +54,7 @@ module.exports = (function() {
return new Utils.CustomEventEmitter(function(emitter) { return new Utils.CustomEventEmitter(function(emitter) {
obj[self.accessors.get]().success(function(oldObj) { obj[self.accessors.get]().success(function(oldObj) {
if(oldObj) { if(oldObj) {
oldObj[self.identifier] = /*options.omitNull ? '' :*/ null; oldObj[self.identifier] = null
oldObj.save() oldObj.save()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!