Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8179

Enable code execution on transaction boundaries

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.3
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      This can be useful when:

      a) Coordinating with non-transactional resources within a transactional context
      b) Executing queries which would otherwise be subject to lock/race issues

      Example usage:

      CRM_Core_Transaction::addCallback(CRM_Core_Transaction::PHASE_POST_COMMIT, array('My_Class', 'myStaticMethod'));

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: