1. 14 11月, 2018 1 次提交
  2. 12 11月, 2018 6 次提交
  3. 11 11月, 2018 3 次提交
  4. 10 11月, 2018 7 次提交
  5. 09 11月, 2018 7 次提交
  6. 08 11月, 2018 14 次提交
  7. 07 11月, 2018 2 次提交
    • R
      Merge pull request #34393 from eugeneius/always_add_to_parent_transaction · d84bc2b1
      Ryuta Kamizono 提交于
      Always add records to parent of nested transaction
      d84bc2b1
    • E
      Always add records to parent of nested transaction · 9030b7c7
      Eugene Kenny 提交于
      When a record with transactional callbacks is saved, it's attached to
      the current transaction so that the callbacks can be run when the
      transaction is committed. Records can also be added manually with
      `add_transaction_record`, even if they have no transactional callbacks.
      
      When a nested transaction is committed, its records are transferred to
      the parent transaction, as transactional callbacks should only be run
      when the outermost transaction is committed (the "real" transaction).
      However, this currently only happens when the record has transactional
      callbacks, and not when added manually with `add_transaction_record`.
      
      If a record is added to a nested transaction, we should always attach it
      to the parent transaction when the nested transaction is committed,
      regardless of whether it has any transactional callbacks.
      
      [Eugene Kenny & Ryuta Kamizono]
      9030b7c7