Remove IPN reference to _relatedObjects, deprecate property
authoreileen <emcnaughton@wikimedia.org>
Sun, 1 Nov 2020 23:36:10 +0000 (12:36 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 1 Nov 2020 23:48:52 +0000 (12:48 +1300)
CRM/Contribute/BAO/Contribution.php
CRM/Core/Payment/AuthorizeNetIPN.php

index e426ba786087b57297b8b2bcfab4bd91ceb16f39..ae8a01f91233bb820be24007b2696ed6d009830c 100644 (file)
@@ -44,9 +44,19 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
   public static $_trxnIDs = NULL;
 
   /**
-   * Field for all the objects related to this contribution
+   * Field for all the objects related to this contribution.
+   *
+   * This is used from
+   * 1) deprecated function transitionComponents
+   * 2) function to send contribution receipts _assignMessageVariablesToTemplate
+   * 3) some invoice code that is copied from 2
+   * 4) odds & sods that need to be investigated and fixed.
+   *
+   * However, it is no longer used by completeOrder.
    *
    * @var \CRM_Member_BAO_Membership|\CRM_Event_BAO_Participant[]
+   *
+   * @deprecated
    */
   public $_relatedObjects = [];
 
index 87bd21990e1d0a2edb7cdd83dfb5cd58a3ec85dc..dc4340500bfd1bbe8293d250934deeee76672924 100644 (file)
@@ -107,7 +107,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN {
           $contribution->amount_level = $objects['contribution']->amount_level;
           $contribution->address_id = $objects['contribution']->address_id;
           $contribution->campaign_id = $objects['contribution']->campaign_id;
-          $contribution->_relatedObjects = $objects['contribution']->_relatedObjects;
 
           $objects['contribution'] = &$contribution;
         }