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

You need to sign in or sign up before continuing.
Commit b0c586c1 by Sascha Depold

removed check for omitNull

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