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

Commit cfc66e9e by Sascha Depold

Emit the sql event of the find method as well

1 parent 4ac8c613
Showing with 3 additions and 1 deletions
......@@ -87,7 +87,8 @@ module.exports = (function() {
var instance = this
return new Utils.CustomEventEmitter(function(emitter) {
instance[association.accessors.get]().success(function(oldInstance) {
instance[association.accessors.get]()
.success(function(oldInstance) {
if (oldInstance) {
oldInstance[association.identifier] = null
oldInstance
......@@ -113,6 +114,7 @@ module.exports = (function() {
}
}
})
.proxy(emitter, { events: ['sql'] })
}).run()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!