code: function addPostHooksTransaction() {
              // disable (post) hooks, we will only trigger them on transaction succceed
              this.__hooksEnabled = false;
              this.constructor.hooksTransaction.call(
                  _this,
                  transaction,
                  this.__posts
                      ? this.__posts.save
                      : undefined
              );
          }
docs: If it is a transaction, we create a hooks.post array that will be executed
  when transaction succeeds by calling transaction.execPostHooks() (returns a Promises)