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 = [];
$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;
}