Regenerate Core DAO files without boilerplate getReferenceColumns()
authorcolemanw <coleman@civicrm.org>
Tue, 2 Jan 2024 04:25:47 +0000 (23:25 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 2 Jan 2024 04:25:47 +0000 (23:25 -0500)
126 files changed:
CRM/ACL/DAO/ACL.php
CRM/ACL/DAO/ACLCache.php
CRM/ACL/DAO/ACLEntityRole.php
CRM/Activity/DAO/Activity.php
CRM/Activity/DAO/ActivityContact.php
CRM/Batch/DAO/Batch.php
CRM/Batch/DAO/EntityBatch.php
CRM/Campaign/DAO/Campaign.php
CRM/Campaign/DAO/CampaignGroup.php
CRM/Campaign/DAO/Survey.php
CRM/Case/DAO/Case.php
CRM/Case/DAO/CaseActivity.php
CRM/Case/DAO/CaseContact.php
CRM/Contact/DAO/Contact.php
CRM/Contact/DAO/ContactType.php
CRM/Contact/DAO/DashboardContact.php
CRM/Contact/DAO/Group.php
CRM/Contact/DAO/GroupContact.php
CRM/Contact/DAO/GroupContactCache.php
CRM/Contact/DAO/GroupNesting.php
CRM/Contact/DAO/GroupOrganization.php
CRM/Contact/DAO/Relationship.php
CRM/Contact/DAO/RelationshipCache.php
CRM/Contact/DAO/SavedSearch.php
CRM/Contact/DAO/SubscriptionHistory.php
CRM/Contribute/DAO/Contribution.php
CRM/Contribute/DAO/ContributionPage.php
CRM/Contribute/DAO/ContributionProduct.php
CRM/Contribute/DAO/ContributionRecur.php
CRM/Contribute/DAO/ContributionSoft.php
CRM/Contribute/DAO/Premium.php
CRM/Contribute/DAO/PremiumsProduct.php
CRM/Contribute/DAO/Product.php
CRM/Contribute/DAO/Widget.php
CRM/Core/DAO/ActionLog.php
CRM/Core/DAO/ActionSchedule.php
CRM/Core/DAO/Address.php
CRM/Core/DAO/Cache.php
CRM/Core/DAO/Country.php
CRM/Core/DAO/County.php
CRM/Core/DAO/CustomField.php
CRM/Core/DAO/CustomGroup.php
CRM/Core/DAO/Dashboard.php
CRM/Core/DAO/Discount.php
CRM/Core/DAO/Domain.php
CRM/Core/DAO/Email.php
CRM/Core/DAO/EntityFile.php
CRM/Core/DAO/EntityTag.php
CRM/Core/DAO/File.php
CRM/Core/DAO/IM.php
CRM/Core/DAO/Job.php
CRM/Core/DAO/JobLog.php
CRM/Core/DAO/LocBlock.php
CRM/Core/DAO/Log.php
CRM/Core/DAO/MailSettings.php
CRM/Core/DAO/MappingField.php
CRM/Core/DAO/Menu.php
CRM/Core/DAO/Navigation.php
CRM/Core/DAO/Note.php
CRM/Core/DAO/OpenID.php
CRM/Core/DAO/OptionValue.php
CRM/Core/DAO/Phone.php
CRM/Core/DAO/PrintLabel.php
CRM/Core/DAO/Setting.php
CRM/Core/DAO/StateProvince.php
CRM/Core/DAO/StatusPreference.php
CRM/Core/DAO/Tag.php
CRM/Core/DAO/Timezone.php
CRM/Core/DAO/Translation.php
CRM/Core/DAO/UFField.php
CRM/Core/DAO/UFGroup.php
CRM/Core/DAO/UFJoin.php
CRM/Core/DAO/UFMatch.php
CRM/Core/DAO/UserJob.php
CRM/Core/DAO/Website.php
CRM/Core/DAO/WordReplacement.php
CRM/Dedupe/DAO/DedupeException.php
CRM/Dedupe/DAO/DedupeRule.php
CRM/Event/Cart/DAO/Cart.php
CRM/Event/Cart/DAO/EventInCart.php
CRM/Event/DAO/Event.php
CRM/Event/DAO/Participant.php
CRM/Event/DAO/ParticipantPayment.php
CRM/Financial/DAO/EntityFinancialAccount.php
CRM/Financial/DAO/EntityFinancialTrxn.php
CRM/Financial/DAO/FinancialAccount.php
CRM/Financial/DAO/FinancialItem.php
CRM/Financial/DAO/FinancialTrxn.php
CRM/Financial/DAO/PaymentProcessor.php
CRM/Financial/DAO/PaymentToken.php
CRM/Friend/DAO/Friend.php
CRM/Mailing/DAO/BouncePattern.php
CRM/Mailing/DAO/Mailing.php
CRM/Mailing/DAO/MailingAB.php
CRM/Mailing/DAO/MailingGroup.php
CRM/Mailing/DAO/MailingJob.php
CRM/Mailing/DAO/MailingRecipients.php
CRM/Mailing/DAO/MailingTrackableURL.php
CRM/Mailing/DAO/Spool.php
CRM/Mailing/Event/DAO/MailingEventBounce.php
CRM/Mailing/Event/DAO/MailingEventConfirm.php
CRM/Mailing/Event/DAO/MailingEventDelivered.php
CRM/Mailing/Event/DAO/MailingEventForward.php
CRM/Mailing/Event/DAO/MailingEventOpened.php
CRM/Mailing/Event/DAO/MailingEventQueue.php
CRM/Mailing/Event/DAO/MailingEventReply.php
CRM/Mailing/Event/DAO/MailingEventSubscribe.php
CRM/Mailing/Event/DAO/MailingEventTrackableURLOpen.php
CRM/Mailing/Event/DAO/MailingEventUnsubscribe.php
CRM/Member/DAO/Membership.php
CRM/Member/DAO/MembershipBlock.php
CRM/Member/DAO/MembershipLog.php
CRM/Member/DAO/MembershipPayment.php
CRM/Member/DAO/MembershipType.php
CRM/PCP/DAO/PCP.php
CRM/PCP/DAO/PCPBlock.php
CRM/Pledge/DAO/Pledge.php
CRM/Pledge/DAO/PledgeBlock.php
CRM/Pledge/DAO/PledgePayment.php
CRM/Price/DAO/LineItem.php
CRM/Price/DAO/PriceField.php
CRM/Price/DAO/PriceFieldValue.php
CRM/Price/DAO/PriceSet.php
CRM/Price/DAO/PriceSetEntity.php
CRM/Report/DAO/ReportInstance.php
CRM/SMS/DAO/Provider.php

index 9141c0775b490ddc9e18009cdd802d8de3e4aac5..8655c8371777e0bffa62c337137466fe4d5a42f9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/ACL.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d49159426e04e1bab16768e2f7ed9551)
+ * (GenCodeChecksum:3d1a53d2aa2092299ce1a5b5ceb468f1)
  */
 
 /**
@@ -166,21 +166,6 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
     return $plural ? ts('ACLs') : ts('ACL');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -295,6 +280,8 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
           'entity' => 'ACL',
           'bao' => 'CRM_ACL_BAO_ACL',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'pseudoconstant' => [
             'optionGroupName' => 'acl_role',
             'optionEditPath' => 'civicrm/admin/options/acl_role',
index 8e4fe54bc5910d98bf6c5d4da00a6817c346235b..5687af27e2806707fc1907b489a1152314289cea 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/ACLCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9c12474c5ca5cb7ebdd2863c0d196fdd)
+ * (GenCodeChecksum:a4f7301d73ae6c7771075e585f120059)
  */
 
 /**
@@ -84,21 +84,6 @@ class CRM_ACL_DAO_ACLCache extends CRM_Core_DAO {
     return $plural ? ts('ACLCaches') : ts('ACLCache');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'acl_id', 'civicrm_acl', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -170,6 +155,7 @@ class CRM_ACL_DAO_ACLCache extends CRM_Core_DAO {
           'bao' => 'CRM_ACL_DAO_ACLCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_ACL_DAO_ACL',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("ACL"),
           ],
index 17310251759c5cc9b1a12b375864800c148efcc2..795da1199fd6078e95f31c6f5a935ae9553339ef 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/ACLEntityRole.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:40a405c8fced6fcaf672b6f7986ac941)
+ * (GenCodeChecksum:864dfaaffafb1aac5963e88c3b847c56)
  */
 
 /**
@@ -105,21 +105,6 @@ class CRM_ACL_DAO_ACLEntityRole extends CRM_Core_DAO {
     return $plural ? ts('ACL Role Assignments') : ts('ACL Role Assignment');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -215,6 +200,8 @@ class CRM_ACL_DAO_ACLEntityRole extends CRM_Core_DAO {
           'entity' => 'ACLEntityRole',
           'bao' => 'CRM_ACL_BAO_ACLEntityRole',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.6',
         ],
         'is_active' => [
index 01b51f9e48350f8dfb1cae31ebf8589eb2063467..d24acdc68fa705469eb0f09404b62db500150ef1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Activity/Activity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ffa034666119a99fd35c5cf8955b8ecc)
+ * (GenCodeChecksum:18d2e627738109617e50c084979441c0)
  */
 
 /**
@@ -323,25 +323,6 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
     return ts('Past or future actions concerning one or more contacts.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_activity', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_id', 'civicrm_relationship', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'original_id', 'civicrm_activity', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -545,6 +526,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_Activity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Phone',
+          'FKColumnName' => 'id',
           'deprecated' => TRUE,
           'html' => [
             'type' => 'EntityRef',
@@ -672,6 +654,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_Activity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Activity_DAO_Activity',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Parent Activity"),
           ],
@@ -766,6 +749,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_Activity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Relationship',
+          'FKColumnName' => 'id',
           'deprecated' => TRUE,
           'html' => [
             'label' => ts("Relationship"),
@@ -810,6 +794,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_Activity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Activity_DAO_Activity',
+          'FKColumnName' => 'id',
           'deprecated' => TRUE,
           'html' => [
             'label' => ts("Original Activity"),
@@ -881,6 +866,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_Activity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index 374cf1da53a7b08920a9d03742279b76d87362a9..7e7ae06755efb1ad2f9afdd5909c55059167e1fc 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Activity/ActivityContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fd1feb6c83534a381e35804ae722914d)
+ * (GenCodeChecksum:1e56caf678b48133edb050534211993a)
  */
 
 /**
@@ -84,22 +84,6 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
     return $plural ? ts('Activity Contacts') : ts('Activity Contact');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'activity_id', 'civicrm_activity', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -149,6 +133,7 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_ActivityContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Activity_DAO_Activity',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Activity"),
           ],
@@ -174,6 +159,7 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
           'bao' => 'CRM_Activity_BAO_ActivityContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index 1e37aad6d5f1320694d306803a3164e6f374133b..b0731fcf15ef1250dfacd44d3dda8d5000d5bef0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Batch/Batch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b4f4971d181f79d33d8cd13fb54ea14b)
+ * (GenCodeChecksum:9b0fed60412874a7e3ebcaabe143bb18)
  */
 
 /**
@@ -206,23 +206,6 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
     return $plural ? ts('Batches') : ts('Batch');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'saved_search_id', 'civicrm_saved_search', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -340,6 +323,7 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
           'bao' => 'CRM_Batch_BAO_Batch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -384,6 +368,7 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
           'bao' => 'CRM_Batch_BAO_Batch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
@@ -425,6 +410,7 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
           'bao' => 'CRM_Batch_BAO_Batch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_SavedSearch',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Smart Group"),
index a3e175d2ea7deeb5d871174683bf433e9d337d13..3f49ec82b2655c0a95e02ecf11b1b30885144512 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Batch/EntityBatch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3aeab19bbe2e645ffa8a149e2819d3a7)
+ * (GenCodeChecksum:c2622d64e4cab3d7fb2a2b1cc2424efd)
  */
 
 /**
@@ -84,22 +84,6 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
     return $plural ? ts('Entity Batches') : ts('Entity Batch');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'batch_id', 'civicrm_batch', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -172,6 +156,8 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
           'entity' => 'EntityBatch',
           'bao' => 'CRM_Batch_BAO_EntityBatch',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '3.3',
         ],
         'batch_id' => [
@@ -192,6 +178,7 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
           'bao' => 'CRM_Batch_BAO_EntityBatch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Batch_DAO_Batch',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Batch"),
           ],
index 8fc7bac9a893e468fa2c43b3419527395c8850c7..e30faa1152f60f4ccb845f6601aecfe98b0bb1e1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Campaign.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dbeaf967ec7d7d3532d4cacb2a0e36b4)
+ * (GenCodeChecksum:a54430a3a190945a3252b69151eb26ff)
  */
 
 /**
@@ -236,23 +236,6 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
     return ts('Campaigns link activities, contributions, mailings, etc. that share a programmatic goal.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -522,6 +505,7 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Campaign',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Parent Campaign"),
@@ -569,6 +553,7 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Campaign',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -616,6 +601,7 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Campaign',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
index 5fd725d839cf3820dab0920d6857b68303630b62..f57f680fac66fc439523263a2fb99382da5700b7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a33ba39795de9f821cfb90cbe83db039)
+ * (GenCodeChecksum:f76990e9e90197859805296c8ce7818e)
  */
 
 /**
@@ -94,22 +94,6 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
     return $plural ? ts('Campaign Groups') : ts('Campaign Group');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -159,6 +143,7 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_DAO_CampaignGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Campaign"),
@@ -236,6 +221,8 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'entity' => 'CampaignGroup',
           'bao' => 'CRM_Campaign_DAO_CampaignGroup',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '3.3',
         ],
       ];
index bfaaf383bc20590a1af4d96b736d93c1232f5269..8e083d7d893192a83401b9492dcd3d462075ef23 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Survey.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b517a686715877b8cde6af69122dcc0d)
+ * (GenCodeChecksum:6b7ed7c668ff78b88eff06644a9673c8)
  */
 
 /**
@@ -245,23 +245,6 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
     return $plural ? ts('Surveys') : ts('Survey');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -337,6 +320,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Survey',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Campaign"),
@@ -522,6 +506,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Survey',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -562,6 +547,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Survey',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
index 00408380196cae588ab5f6355d7ca9568cd232f8..ad30a3f24f87531b8cf172a7d143b3ed8bfbe232 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/Case.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b5dbbb96b15e9ff288890017d324b984)
+ * (GenCodeChecksum:ae2ebb6d7b065ab0e098e67f581cc874)
  */
 
 /**
@@ -169,21 +169,6 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
     return ts('Collections of activities and relationships for a given purpose.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_type_id', 'civicrm_case_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -237,6 +222,7 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
           'bao' => 'CRM_Case_BAO_Case',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_CaseType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Case Type"),
index ca2031bfbbb92669d2ef4e077d296eab75eb6998..422de4f514d95b0d9228622f49abd3cdd3ccad88 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseActivity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f23fb40d45733dd00663de2b580911b5)
+ * (GenCodeChecksum:0800682b3ed520cf7a9295226219cef2)
  */
 
 /**
@@ -76,22 +76,6 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
     return $plural ? ts('Case Activities') : ts('Case Activity');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'activity_id', 'civicrm_activity', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -141,6 +125,7 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
           'bao' => 'CRM_Case_DAO_CaseActivity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Case"),
           ],
@@ -164,6 +149,7 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
           'bao' => 'CRM_Case_DAO_CaseActivity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Activity_DAO_Activity',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Activity"),
           ],
index 5585644ca324d9444dfab9cca7d0c5825bc9b19f..44e776cf237e777cb3d31299149b2e03599c55ff 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:61369f10107baa2a4c95d6cd83045a00)
+ * (GenCodeChecksum:e86592582af3784c253cac8744460ffe)
  */
 
 /**
@@ -76,22 +76,6 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
     return $plural ? ts('Case Contacts') : ts('Case Contact');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -141,6 +125,7 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
           'bao' => 'CRM_Case_BAO_CaseContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Case"),
           ],
@@ -164,6 +149,7 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
           'bao' => 'CRM_Case_BAO_CaseContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
index f6b08d4ddd3c020079379f75e828d1ddeb7fe161..5dcd385879a1c0594ffeee44b3eb4c81089e2ce6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0470d0df786c3ac33a435555a3d026fb)
+ * (GenCodeChecksum:f799748a5b7e54fafad9dea3cafbb444)
  */
 
 /**
@@ -539,22 +539,6 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
     return ts('Individuals, organizations, households, etc.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'primary_contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'employer_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -1782,6 +1766,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Contact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Household Primary Contact"),
           ],
@@ -1864,6 +1849,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Contact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Current Employer"),
index f191194fc080abe16a74b10c8b037ff4db678fea..26bc5c406c28262ee1c7cceecf07edb1099af5cc 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/ContactType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e4773f83a587c49fc7efc7a507b06fb8)
+ * (GenCodeChecksum:e6867c8178161a74d2aa6c0cd2f55b7a)
  */
 
 /**
@@ -148,21 +148,6 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
     return $plural ? ts('Contact Types') : ts('Contact Type');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_contact_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -324,6 +309,7 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_ContactType',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_ContactType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Parent"),
index 39fa966eeac5b3af0e63a0af31120ae94b1df4b4..2b56d1455a95dff26db4710b0f791fee27082eb8 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/DashboardContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2b31333980964ba3394f0c71cc764a9d)
+ * (GenCodeChecksum:bdf36ed6404765eac4648f18ddd25e0c)
  */
 
 /**
@@ -100,22 +100,6 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
     return $plural ? ts('Dashboard Contacts') : ts('Dashboard Contact');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dashboard_id', 'civicrm_dashboard', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -164,6 +148,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_DashboardContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Dashboard',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Dashboard"),
           ],
@@ -187,6 +172,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_DashboardContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index c75afb4b9f64cdf20e22e54c0fc00caab0e2aeb8..b606f18493819349e335b8575fb6db3a95efbe0b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Group.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:751b5e9e81fbe25cb995f4b4c3494346)
+ * (GenCodeChecksum:d673dfbe94fef69bf9598fdf3020dda4)
  */
 
 /**
@@ -284,23 +284,6 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
     return $plural ? ts('Groups') : ts('Group');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'saved_search_id', 'civicrm_saved_search', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -437,6 +420,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Group',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_SavedSearch',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Saved Search"),
           ],
@@ -761,6 +745,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Group',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -783,6 +768,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Group',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
index cd57fc2542cd0af848b54449eb58996082afacc8..42c2c1514a1406c158f2800d23f8d7c3ceb28fde 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7a06dd829a0206d8af74a2773b8957db)
+ * (GenCodeChecksum:b823eecee947f4102bccd38a2fa10d04)
  */
 
 /**
@@ -102,24 +102,6 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
     return $plural ? ts('Group Contacts') : ts('Group Contact');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_id', 'civicrm_loc_block', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -169,6 +151,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Group"),
@@ -198,6 +181,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -246,6 +230,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocBlock',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Location"),
           ],
@@ -268,6 +253,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContact',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Email',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Email"),
           ],
index 4d022814b2b607abfab96f9206cc4cdc5b7b7eb8..0ec9b07a6d63e316db2b6bae76ad1213568792eb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContactCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0f806c2e812e87a837b693f1ba442cae)
+ * (GenCodeChecksum:a700f89a58ee1b7e63ca867bcbc1de86)
  */
 
 /**
@@ -75,22 +75,6 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
     return $plural ? ts('Group Contact Caches') : ts('Group Contact Cache');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -140,6 +124,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContactCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Group"),
@@ -169,6 +154,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupContactCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index 476c4e449af8887c470a450d17ee497b84137740..edd3429fde26a65020fec3b18fdc0d7894d7df79 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupNesting.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c87d24cc1ea2c257dc344001e0516a42)
+ * (GenCodeChecksum:31b039d439208a08efb24155443a9241)
  */
 
 /**
@@ -75,22 +75,6 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
     return $plural ? ts('Group Nestings') : ts('Group Nesting');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'child_group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_group_id', 'civicrm_group', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -140,6 +124,7 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupNesting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Child Group"),
           ],
@@ -163,6 +148,7 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupNesting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Parent Group"),
           ],
index 82b10572fd62f07f2668408e2005d55ec74345d7..2651a400831c165a308c751a4576b53085c12ffb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupOrganization.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aff10fe04b6becadd6b1de47a34e52c1)
+ * (GenCodeChecksum:0154a5b5ddbc324b25eb18b18cee70b5)
  */
 
 /**
@@ -75,22 +75,6 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
     return $plural ? ts('Group Organizations') : ts('Group Organization');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'organization_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -140,6 +124,7 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupOrganization',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Group"),
@@ -169,6 +154,7 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_GroupOrganization',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Organization"),
           ],
index bff75bc0d96c4e42fb5728481835fe37d0e56288..0527cf7243e208767bcbe7e608b3de3f4eaaca1c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e6e709da33773d09d7e788d21c64437b)
+ * (GenCodeChecksum:cb178a4634f48ebf1240e74240100693)
  */
 
 /**
@@ -182,24 +182,6 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
     return $plural ? ts('Relationships') : ts('Relationship');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id_a', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id_b', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_type_id', 'civicrm_relationship_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -249,6 +231,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact A"),
@@ -273,6 +256,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact B"),
@@ -297,6 +281,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_RelationshipType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Relationship Type"),
@@ -480,6 +465,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'FKColumnName' => 'id',
           'component' => 'CiviCase',
           'html' => [
             'type' => 'EntityRef',
index dd4aee80d0fe1f271c8583f50e1626e66beea627..3351c6a2d7c92e2c89920de8c2129f6812d282a5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9170513963860f5b9cadce190a68b8bf)
+ * (GenCodeChecksum:6d5a3561e59414ced7321ba51416886d)
  */
 
 /**
@@ -175,25 +175,6 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
     return $plural ? ts('Related Contacts') : ts('Related Contact');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_id', 'civicrm_relationship', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_type_id', 'civicrm_relationship_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'near_contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'far_contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -243,6 +224,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Relationship',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Relationship"),
           ],
@@ -267,6 +249,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_RelationshipType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Relationship Type"),
           ],
@@ -316,6 +299,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact (Near side)"),
@@ -369,6 +353,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact (Far side)"),
@@ -493,6 +478,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'FKColumnName' => 'id',
           'component' => 'CiviCase',
           'html' => [
             'type' => 'EntityRef',
index 5d5917b55b541d46df16d0c9bbe5562f4f9ed234..81a8ef3819dd5b49e64a0b206c1d8dc16478f6e3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/SavedSearch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0207c460a525db5da9ceb5b20708d77a)
+ * (GenCodeChecksum:6a4e86b2c7c5ad71a68b90c40cd5313f)
  */
 
 /**
@@ -186,23 +186,6 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
     return $plural ? ts('Saved Searches') : ts('Saved Search');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mapping_id', 'civicrm_mapping', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -323,6 +306,7 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_SavedSearch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Mapping',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mapping"),
           ],
@@ -409,6 +393,7 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_SavedSearch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -432,6 +417,7 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_SavedSearch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
index 422a1bb43fc46dd96fac1a789d17ba060090b6ec..d3dae026545997260d4a63a7265407679d30168a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/SubscriptionHistory.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:447fef069f8e4e0b537c30f43e61226f)
+ * (GenCodeChecksum:c2c9def531bf0ef05e40200f82a280e4)
  */
 
 /**
@@ -111,22 +111,6 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
     return $plural ? ts('Subscription Histories') : ts('Subscription History');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -176,6 +160,7 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -198,6 +183,7 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Group"),
index 8295fc40279de68b5d9822353c3f527561381ff6..af1c99d6d65080cb4408a587da61e6b98ff787c2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Contribution.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f62008d2fa8bae5fcc90e9fa11cf9591)
+ * (GenCodeChecksum:ac06e44eef3c31fd91b5a2e722cce4e2)
  */
 
 /**
@@ -342,26 +342,6 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
     return ts('Financial records consisting of transactions, line-items, etc.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'address_id', 'civicrm_address', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -417,6 +397,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
@@ -442,6 +423,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
@@ -472,6 +454,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Contribution Page"),
@@ -943,6 +926,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Recurring Contribution"),
@@ -1045,6 +1029,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Address',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Address"),
           ],
@@ -1094,6 +1079,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Contribution',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index 7bfa94ce5ff9b960c9eff5439a77f6849fab63ef..da7d644988c45cc25266a2109d98c840f3f216de 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionPage.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8c1f3262364d5a5f1255e1f0eb4bf690)
+ * (GenCodeChecksum:0878c44e4ecbf95e1c3c18731633e8a1)
  */
 
 /**
@@ -491,23 +491,6 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
     return $plural ? ts('Contribution Pages') : ts('Contribution Page');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -651,6 +634,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
@@ -1426,6 +1410,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -1499,6 +1484,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index e9c118b70f0ce8bead2ac27a37ccbda4bcf726fb..66a2b4e4cc9bebbf63d7f811e9e25973691b190a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionProduct.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ffe5040ca99302edbb97acf3b183f9c7)
+ * (GenCodeChecksum:bdaea7c43da84af6dc29826b644505a0)
  */
 
 /**
@@ -129,23 +129,6 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO {
     return $plural ? ts('Contribution Products') : ts('Contribution Product');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'product_id', 'civicrm_product', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -193,6 +176,7 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_ContributionProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Product',
+          'FKColumnName' => 'id',
           'add' => '1.4',
         ],
         'contribution_id' => [
@@ -212,6 +196,7 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_ContributionProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
@@ -353,6 +338,7 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_ContributionProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Financial Type"),
           ],
index d273ea166aa16692b0e0e3501f94042f54e83111..2efe3a32c5404a6fca62ed0465bed2096e15c14b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d12951f50f11d6868ebb04fe6f3d9707)
+ * (GenCodeChecksum:5a9eadcb838cebf85ce424f126822690)
  */
 
 /**
@@ -306,25 +306,6 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
     return $plural ? ts('Recurring Contributions') : ts('Recurring Contribution');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_token_id', 'civicrm_payment_token', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_processor_id', 'civicrm_payment_processor', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -374,6 +355,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
@@ -693,6 +675,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_PaymentToken',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Payment Token"),
           ],
@@ -926,6 +909,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_PaymentProcessor',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Payment Processor"),
@@ -954,6 +938,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
@@ -1009,6 +994,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index 3e16c2d8a292be290deea121b093f54c9900af77..c13707cb79f234517a9205c13e94a664fffe5c41 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d205401be46596f6de807e4b45ab18fd)
+ * (GenCodeChecksum:3ecf6fc6d7483e6dea0d1fb222797cd7)
  */
 
 /**
@@ -133,23 +133,6 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
     return $plural ? ts('Contribution Soft Credits') : ts('Contribution Soft Credit');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'pcp_id', 'civicrm_pcp', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -201,6 +184,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionSoft',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
@@ -229,6 +213,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionSoft',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -310,6 +295,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_ContributionSoft',
           'localizable' => 0,
           'FKClassName' => 'CRM_PCP_DAO_PCP',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("PCP"),
           ],
index 31395e66e56b9b5da4cc4e8bd1f4a6e7b413a698..543c803b6b809f9566efa1a9d139b39ac4edf94e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Premium.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3463ecde633704e18dc34fb992825c11)
+ * (GenCodeChecksum:7b586940572f3109ff5917254103dd4e)
  */
 
 /**
@@ -142,21 +142,6 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO {
     return $plural ? ts('Premiums') : ts('Premium');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -227,6 +212,8 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO {
           'entity' => 'Premium',
           'bao' => 'CRM_Contribute_BAO_Premium',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.4',
         ],
         'premiums_active' => [
index 3ad78b47652e07fb4b139014206c2d3f589a9e4e..59bc02a595a9a4c8a028cfafb3240213d55f57b1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/PremiumsProduct.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:01fc05143613e3855c45143ed3518bc5)
+ * (GenCodeChecksum:6e4ab04c238e7960a2134aeda0df31f0)
  */
 
 /**
@@ -92,23 +92,6 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO {
     return $plural ? ts('Product Premiums') : ts('Product Premium');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'premiums_id', 'civicrm_premiums', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'product_id', 'civicrm_product', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -158,6 +141,7 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Premium',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Premium"),
           ],
@@ -181,6 +165,7 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Product',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Product"),
           ],
@@ -222,6 +207,7 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Financial Type"),
           ],
index 5cb1e55761d2923483ddf3d06674f491ff802bbb..ac5483122b063c8edd1ff6578c653628e501c388 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Product.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6bd62695324c0ebd78baa0eca84db6e8)
+ * (GenCodeChecksum:0ef2f469fb291abae7fe738f40d6b885)
  */
 
 /**
@@ -236,21 +236,6 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
     return $plural ? ts('Products') : ts('Product');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -472,6 +457,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Financial Type"),
           ],
index 3ae505b85c2705b8d5b48a6598e03602f8499154..f762f597bc7a326f2a6c836ad22f5419d48288e6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Widget.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3f38f90af537cdb630a2b0b09cd2c718)
+ * (GenCodeChecksum:14b5198c0eb470500fe1c33d2a6526e4)
  */
 
 /**
@@ -191,21 +191,6 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO {
     return $plural ? ts('Widgets') : ts('Widget');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -254,6 +239,7 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO {
           'bao' => 'CRM_Contribute_BAO_Widget',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contribution Page"),
           ],
index d86e2f5c3f818f257c1d1ac6ad85e142ebd105d1..b7e57e2ffbb14919ec91a212c3aa001ae2b28c82 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f26b6a45f88673909bc79f0dc47ec95e)
+ * (GenCodeChecksum:281e8a8a8378ddbbf65de5cfacc97828)
  */
 
 /**
@@ -136,23 +136,6 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
     return $plural ? ts('Action Logs') : ts('Action Log');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'action_schedule_id', 'civicrm_action_schedule', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -200,6 +183,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -222,6 +206,8 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
           'entity' => 'ActionLog',
           'bao' => 'CRM_Core_BAO_ActionLog',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '3.4',
         ],
         'entity_table' => [
@@ -262,6 +248,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_ActionSchedule',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Schedule"),
           ],
index bde4d69376343f70c5a62b1b338b10c19f81834c..3078d4aa9a00f545293874f4fc2135544df582ae 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionSchedule.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e6121895aa480e9b4fdbf171b01b91dc)
+ * (GenCodeChecksum:155066f04857fec33b9f6b5d9d422cd9)
  */
 
 /**
@@ -439,24 +439,6 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
     return $plural ? ts('Scheduled Reminders') : ts('Scheduled Reminder');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'msg_template_id', 'civicrm_msg_template', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'sms_template_id', 'civicrm_msg_template', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'sms_provider_id', 'civicrm_sms_provider', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -1170,6 +1152,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionSchedule',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Group"),
@@ -1199,6 +1182,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionSchedule',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_MessageTemplate',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Message Template"),
           ],
@@ -1221,6 +1205,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionSchedule',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_MessageTemplate',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("SMS Template"),
           ],
@@ -1340,6 +1325,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_ActionSchedule',
           'localizable' => 0,
           'FKClassName' => 'CRM_SMS_DAO_Provider',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("SMS Provider"),
index 1ae80842eb3842de9ea9d342f62f392fea7bb0e0..2d3b5ce058067ae06dd0511b60cdde4396e437bc 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Address.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7fed80f6afc84e71f18055294868044d)
+ * (GenCodeChecksum:8ab653268a837a495427e04e0f874af7)
  */
 
 /**
@@ -317,25 +317,6 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
     return $plural ? ts('Addresses') : ts('Address');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'county_id', 'civicrm_county', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'state_province_id', 'civicrm_state_province', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'country_id', 'civicrm_country', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'master_id', 'civicrm_address', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -385,6 +366,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Address',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -779,6 +761,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Address',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_County',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'ChainSelect',
             'label' => ts("County"),
@@ -814,6 +797,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'localizable' => 0,
           'localize_context' => 'province',
           'FKClassName' => 'CRM_Core_DAO_StateProvince',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'ChainSelect',
             'label' => ts("State/Province"),
@@ -924,6 +908,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'localizable' => 0,
           'localize_context' => 'country',
           'FKClassName' => 'CRM_Core_DAO_Country',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Country"),
@@ -1081,6 +1066,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Address',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Address',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Master Address Belongs To"),
           ],
index e1cc2aecd906f701934378e964df51736e700911..dcb29e16f8d34a36725162f80f44e9dcecb1c07c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Cache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7bc573038c1e40396686f8340a38bda1)
+ * (GenCodeChecksum:b61a713809b89c9f8bf1bbd6256ef986)
  */
 
 /**
@@ -111,21 +111,6 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO {
     return $plural ? ts('Caches') : ts('Cache');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -233,6 +218,7 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Cache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Component',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Component"),
index 7e008233285c4006091162f922ed25c790780762..b9ff3e97307590a907e4d12c319eab2bc783d355 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Country.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b3efea686c5569dab5aa3924dc04275a)
+ * (GenCodeChecksum:0a6cc17a97d1804a8ef0634e097b6315)
  */
 
 /**
@@ -161,22 +161,6 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
     return ts('Countries of the world');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'address_format_id', 'civicrm_address_format', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'region_id', 'civicrm_worldregion', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -289,6 +273,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Country',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_AddressFormat',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Address Format"),
           ],
@@ -353,6 +338,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'localizable' => 0,
           'localize_context' => 'country',
           'FKClassName' => 'CRM_Core_DAO_Worldregion',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("World Region"),
index fe0574805fd29a194a85d326bd230d5c44087e1e..bac95d750717ed52808c17bf2c3990a603a4f629 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/County.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a79e59728f1c68d4ecc4dbd789decab2)
+ * (GenCodeChecksum:5872e0fad72f1657c21120cb8de7f834)
  */
 
 /**
@@ -100,21 +100,6 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
     return $plural ? ts('Counties') : ts('County');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'state_province_id', 'civicrm_state_province', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -208,6 +193,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_County',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_StateProvince',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("State"),
           ],
index 4986afc728875c5f9bcabe2293b22eca7510f273..bdda36d55d066919c3064d4cdb2ec5d03aa96aee 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e888a6eaf53db3f3d0572a9a1a552c15)
+ * (GenCodeChecksum:5272bbce1af37e0a1dd56fed8ca8ecdf)
  */
 
 /**
@@ -338,22 +338,6 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
     return $plural ? ts('Custom Fields') : ts('Custom Field');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'custom_group_id', 'civicrm_custom_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'option_group_id', 'civicrm_option_group', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -403,6 +387,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_CustomField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_CustomGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Custom Group"),
@@ -902,6 +887,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_CustomField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_OptionGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Field Option Group"),
           ],
index bbaf94bb5f8b3f2f35bb046c6be1a6b2eebc2536..3f25213daaea9a36b2cbbdc208d806bd565d13fb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:05aa9cfdd47acd56178a0a33a2f6ffc1)
+ * (GenCodeChecksum:d87ef7faf84bd9ec8d1ac5195054a05a)
  */
 
 /**
@@ -266,21 +266,6 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
     return $plural ? ts('Custom Field Groups') : ts('Custom Field Group');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -701,6 +686,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_CustomGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index cc1e7818e5add8e5093c1ca38ee9bc2f235898ff..40b9857eabf79e1811e80a10a8e5b1ec0ae09098 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Dashboard.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8ae82bee366f48ef26b35caf23b89398)
+ * (GenCodeChecksum:1131a6e3957e7ce8e0a2371565562cad)
  */
 
 /**
@@ -161,21 +161,6 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
     return $plural ? ts('Dashboards') : ts('Dashboard');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -224,6 +209,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Dashboard',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
index ec48418394a4bf6a5ef4404e0cfff335d4fbaa3c..826035221b5067d185206cb18b0102c3f6811395 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Discount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:83144959b102b14625522e9fae8dd8d8)
+ * (GenCodeChecksum:937a5a030125d65e7b8a064cecf919fd)
  */
 
 /**
@@ -102,22 +102,6 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO {
     return $plural ? ts('Discounts') : ts('Discount');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_set_id', 'civicrm_price_set', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -190,6 +174,8 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO {
           'entity' => 'Discount',
           'bao' => 'CRM_Core_BAO_Discount',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '2.1',
         ],
         'participant_discount_name' => [
@@ -211,6 +197,7 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Discount',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceSet',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Price Set"),
index 4e8294f3f0d75e0aafeaac41bdd1559e4a257e7b..f83c19947991277eabcb2ba8d451b44384db3121 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Domain.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:62b9169ac4b8697ec80e752d06ee1bce)
+ * (GenCodeChecksum:4814b16c7b4c8d130e3e29d7ae309d88)
  */
 
 /**
@@ -111,21 +111,6 @@ class CRM_Core_DAO_Domain extends CRM_Core_DAO {
     return $plural ? ts('Domains') : ts('Domain');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -240,6 +225,7 @@ class CRM_Core_DAO_Domain extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Domain',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index aaaf43cb5aca984a5354f7ab043ad1bbe07f75f7..767c51f514e136938dad5f8e11a9132e84377cea 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Email.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:df7f07aea847edcfd8aeb02390f2e5ba)
+ * (GenCodeChecksum:840e0540daf99f6fad7bf13389157479)
  */
 
 /**
@@ -170,21 +170,6 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
     return $plural ? ts('Emails') : ts('Email');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -233,6 +218,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Email',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index c1fa37e5926a2e8118dff0d4f584e51a0572074d..889145562142b0b570f657496855f44eb5d9a61d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/EntityFile.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:21c0d34d03ae7f8aad9706aab1793656)
+ * (GenCodeChecksum:e2899940239f57513f7bc889b482907c)
  */
 
 /**
@@ -84,22 +84,6 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO {
     return $plural ? ts('Entity Files') : ts('Entity File');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'file_id', 'civicrm_file', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -172,6 +156,8 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO {
           'entity' => 'EntityFile',
           'bao' => 'CRM_Core_DAO_EntityFile',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.5',
         ],
         'file_id' => [
@@ -192,6 +178,7 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_EntityFile',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_File',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("File"),
           ],
index 76e783f6a74552e48f070faff02aa94dac386b17..b8f166bd895fced97d460010a74bd443e276b88c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/EntityTag.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5bca5ff1c4ba7d85034410408464f0ac)
+ * (GenCodeChecksum:0c6284da3e376f8bcc7e75f2382eea41)
  */
 
 /**
@@ -84,22 +84,6 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO {
     return $plural ? ts('Entity Tags') : ts('Entity Tag');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'tag_id', 'civicrm_tag', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -172,6 +156,8 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO {
           'entity' => 'EntityTag',
           'bao' => 'CRM_Core_BAO_EntityTag',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '3.2',
         ],
         'tag_id' => [
@@ -192,6 +178,7 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_EntityTag',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Tag',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Tag"),
index 4d99910767fcbb48a895b336ff0fb001ff473a51..5f0677e857fd7845d2a3f3435f27db31cf98442a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/File.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b96c549a621e1c17bcfdfe8c300f6e8c)
+ * (GenCodeChecksum:3da10c3077bcd95ae97573351c54c377)
  */
 
 /**
@@ -120,21 +120,6 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
     return $plural ? ts('Files') : ts('File');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -304,6 +289,7 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_File',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index f302cb90d79cedea78dae7b8e746f3412a03ea56..b069791a6918f51d9c658def23674bd3231496d5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/IM.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:950d37fd8d509c34689d6d40dca59c1d)
+ * (GenCodeChecksum:55bc6457cdc907da89416f4904e1f8c4)
  */
 
 /**
@@ -125,21 +125,6 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
     return $plural ? ts('Instant Messaging') : ts('Instant Messaging');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -188,6 +173,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_IM',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index 63300e27edf020e4ef967f58a999eeed4e5a6378..b663617f69dc86f539a5deabd730d88b4b167ecb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Job.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8cdd8a0345692691b54720bd3568e5f0)
+ * (GenCodeChecksum:fd14e515195028086bdf96c0fd3d8288)
  */
 
 /**
@@ -159,21 +159,6 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
     return $plural ? ts('Jobs') : ts('Job');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -223,6 +208,7 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Job',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Domain"),
index df136a48829ab1b5affc7779188f5209cc8ded0a..29344ddb763f1535fdbd97832fd9e485b8dcf99b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/JobLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fd30c815442ad1c13c530d3e697670e0)
+ * (GenCodeChecksum:2cc5d57c7214571368b304d67759dc29)
  */
 
 /**
@@ -120,22 +120,6 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
     return $plural ? ts('Job Logs') : ts('Job Log');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'job_id', 'civicrm_job', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -185,6 +169,7 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_JobLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -230,6 +215,7 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_JobLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Job',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Number',
           ],
index 0679d8106dc9fa88ed894546c1e21d55437c96ad..c607c2f6b9a9ce8aa4c614106bfcf873ea83f182 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d97c9b9682d113cff88a2e34ef6f954)
+ * (GenCodeChecksum:f5b7464778aa3355be9143c7bd44bef6)
  */
 
 /**
@@ -120,28 +120,6 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
     return $plural ? ts('Locations') : ts('Location');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'address_id', 'civicrm_address', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'im_id', 'civicrm_im', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'address_2_id', 'civicrm_address', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_2_id', 'civicrm_email', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_2_id', 'civicrm_phone', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'im_2_id', 'civicrm_im', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -189,6 +167,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Address',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Address"),
           ],
@@ -210,6 +189,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Email',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Email"),
           ],
@@ -231,6 +211,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Phone',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Phone"),
           ],
@@ -252,6 +233,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_IM',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Instant Messenger"),
           ],
@@ -273,6 +255,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Address',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Address 2"),
           ],
@@ -294,6 +277,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Email',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Email 2"),
           ],
@@ -315,6 +299,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Phone',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Phone 2"),
           ],
@@ -336,6 +321,7 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_LocBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_IM',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Instant Messenger 2"),
           ],
index 9bde3709feddf35df8e6f5d77bc6b488081702f1..b9cef25ffcf60c0f23eb14af2edc8e2b682f4566 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Log.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e61044339c5186502e8f949e0cf21085)
+ * (GenCodeChecksum:a664e18ae03c664f20186590a3e5807c)
  */
 
 /**
@@ -102,22 +102,6 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO {
     return $plural ? ts('Logs') : ts('Log');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -187,6 +171,8 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO {
           'entity' => 'Log',
           'bao' => 'CRM_Core_BAO_Log',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.5',
         ],
         'data' => [
@@ -224,6 +210,7 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Log',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
index a49bb7d870a803f151287188b551d616ba6ed4d1..3751f51b6b091d18ec72616039869a3ca92d9af9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MailSettings.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7d9b4af7c9e04acac0e734ce036ea527)
+ * (GenCodeChecksum:02ee7569c4d85495c6fca92b53108695)
  */
 
 /**
@@ -265,22 +265,6 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO {
     return $plural ? ts('Mail Accounts') : ts('Mail Account');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -330,6 +314,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_MailSettings',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -728,6 +713,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_MailSettings',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Campaign"),
index 403fccfc95964b56e5bda09c07fcb75377cd61f3..a7b0f438ce5e73930d4cbbdf9dcf59c870a78143 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MappingField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8f7b866fac291f09aa847fd68700c9c2)
+ * (GenCodeChecksum:fde17b05b7e7ff25edec775c5a412f7e)
  */
 
 /**
@@ -173,23 +173,6 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
     return $plural ? ts('Mapping Fields') : ts('Mapping Field');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mapping_id', 'civicrm_mapping', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_type_id', 'civicrm_location_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_type_id', 'civicrm_relationship_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -239,6 +222,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_MappingField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Mapping',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mapping"),
           ],
@@ -323,6 +307,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_MappingField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocationType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Location type"),
@@ -419,6 +404,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_MappingField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_RelationshipType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Relationship type"),
           ],
index d554d25fe43d1bdb7e8661299d83087795d27a6f..41eefa95bf69b59666cabea742eb5ed6ae4eb249 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Menu.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cb35af506e5fb70dbdd88627f8b1dee4)
+ * (GenCodeChecksum:68b2bb93878a4b972546d9e3f43e1a4c)
  */
 
 /**
@@ -249,22 +249,6 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
     return $plural ? ts('Menus') : ts('Menu');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -313,6 +297,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_Menu',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Domain"),
@@ -538,6 +523,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_Menu',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Component',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Component"),
index 69f0eab62d6aa78e4ce5e5e2c9cf686dbce07bab..c2a28de8b7dc4d7f97f27524190c679a4d7946af 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Navigation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:54dbd5cd7f55ace4dba98ba8c838902e)
+ * (GenCodeChecksum:23df3f63163a45fc78d97f9d41b40c59)
  */
 
 /**
@@ -161,22 +161,6 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
     return $plural ? ts('Menu Items') : ts('Menu Item');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_navigation', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -225,6 +209,7 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Navigation',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -378,6 +363,7 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Navigation',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Navigation',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("parent"),
           ],
index 1669dbcabe462873d89ebceac33e386117652612..1e16e480516d9a7e4bcac4b7e5c94dcf324e88a6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Note.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9036c8c92bb1abbbd67b08f5c06f7ea3)
+ * (GenCodeChecksum:30875e48458bd58afb6a8098b58391d8)
  */
 
 /**
@@ -157,22 +157,6 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
     return $plural ? ts('Notes') : ts('Note');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -250,6 +234,8 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
           'entity' => 'Note',
           'bao' => 'CRM_Core_BAO_Note',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Reference Item"),
@@ -300,6 +286,7 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Note',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Created By"),
index 15ae1562308d06f76f1832a89d1ea1b26d9dfe0c..80f6c3b3e6880795177417d7db12b9773ece4468 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OpenID.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:53b8b7ca863512c191623ab26381dd0d)
+ * (GenCodeChecksum:ba943523844376fa804ca9fbbb63be8b)
  */
 
 /**
@@ -102,21 +102,6 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
     return $plural ? ts('Open IDs') : ts('Open ID');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -165,6 +150,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_OpenID',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index b6a1ac9ede14fb126128110bb87b2b94f2253685..d775f9229dcc9cc958e69b62f0d440644cf666ec 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7c23d52de169c1ef27cc3a24c3de132e)
+ * (GenCodeChecksum:631d0bd9404a447b384b44cc1b8daeff)
  */
 
 /**
@@ -225,23 +225,6 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
     return $plural ? ts('Option Values') : ts('Option Value');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'option_group_id', 'civicrm_option_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -288,6 +271,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_OptionValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_OptionGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Option Group"),
@@ -549,6 +533,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_OptionValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Component',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Component"),
@@ -577,6 +562,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_OptionValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
index a3e09a7013a12bb83cbf102ebb62141013dd9aaa..d9e2550e059f345a06a1ce80bc57220de519e1d5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Phone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4d8d0c7b49e69a754ef6ae5865537c7f)
+ * (GenCodeChecksum:170cfc165e0c7d8b1cc7e5fc1696e49f)
  */
 
 /**
@@ -153,21 +153,6 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
     return $plural ? ts('Phones') : ts('Phone');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -216,6 +201,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Phone',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index e4bd749d77dec3a8c69752454d15e654d711f82a..92e49467471479f69025e00b3753a1f2a34e3e73 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PrintLabel.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:53efa9e6a15294d0acdc98f16923d6c7)
+ * (GenCodeChecksum:666799f63e1b59a7fb459a736d37ebbb)
  */
 
 /**
@@ -152,21 +152,6 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO {
     return $plural ? ts('Print Labels') : ts('Print Label');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -417,6 +402,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_PrintLabel',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index 452ecd31d40da8e0af883a5643ceeb7f76d992bd..056ac7387ac2534794ebdf01347c5511b7f8a08d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Setting.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2edd9c93748aeaf72a7717586b2c8e72)
+ * (GenCodeChecksum:fd7511a97b39fb876ce599402a278428)
  */
 
 /**
@@ -127,24 +127,6 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
     return $plural ? ts('Settings') : ts('Setting');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -235,6 +217,7 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Setting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -262,6 +245,7 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Setting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -304,6 +288,7 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Setting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Component',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Component"),
@@ -350,6 +335,7 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Setting',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index 3e736ba790963d5e188d2a6cd2cd812cb73ba5be..014cbe32f9d3ceb1fbbe87fd1006e1e114444d70 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/StateProvince.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2dea7ed65c9904a80de16e8d48f35a59)
+ * (GenCodeChecksum:77d17a177f161cc2029169c9c6e9d2fa)
  */
 
 /**
@@ -100,21 +100,6 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
     return $plural ? ts('States/Provinces') : ts('State/Province');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'country_id', 'civicrm_country', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -208,6 +193,7 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_StateProvince',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Country',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Country"),
           ],
index 42c4cc5cfdf4899c8c85fa6f88362c46af159046..f440c79f4871109fc65855a44a0e1f0ea4dff561 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/StatusPreference.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:279691bc3c75b9e09c2a7b18847348d8)
+ * (GenCodeChecksum:f5a0658b23ddc17ca0b627791baa9b00)
  */
 
 /**
@@ -120,21 +120,6 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO {
     return $plural ? ts('Status Preferences') : ts('Status Preference');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -184,6 +169,7 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_StatusPreference',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
index 0a9f5a892047e06e7a0bf2c44cf26cae7d043ee8..76ffee60838c7716b34ccd45c1b148de3b69981e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Tag.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ded9d6a9f9c08146a0205da83c838c91)
+ * (GenCodeChecksum:3242cc59c5a6987043ff9b89fffd9812)
  */
 
 /**
@@ -164,22 +164,6 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
     return $plural ? ts('Tags') : ts('Tag');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_tag', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -294,6 +278,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Tag',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Tag',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Parent Tag"),
           ],
@@ -408,6 +393,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Tag',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Created By"),
index ff158a050abebb33e2f3386c45e6be08112cd08d..5849182f2499a8f7012cee62be8acdfebdd9ff44 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Timezone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:90f0271d09bd3cadf02286f30b926eb6)
+ * (GenCodeChecksum:df6cc62c608df47d2b3d166d3393f45b)
  */
 
 /**
@@ -100,21 +100,6 @@ class CRM_Core_DAO_Timezone extends CRM_Core_DAO {
     return $plural ? ts('Timezones') : ts('Timezone');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'country_id', 'civicrm_country', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -241,6 +226,7 @@ class CRM_Core_DAO_Timezone extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_Timezone',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Country',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Country"),
           ],
index ea45ee09b73d38ffe7132c279caa662ec4ab4c5e..ec150c97c3d4b74ace9053ae2de3e55702e18459 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Translation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:50d8cca3198bc1c9d4616308f2e5c462)
+ * (GenCodeChecksum:0e4a4c57a9282c3e3ddb08422400b36e)
  */
 
 /**
@@ -111,21 +111,6 @@ class CRM_Core_DAO_Translation extends CRM_Core_DAO {
     return $plural ? ts('Translated Strings') : ts('Translated String');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -219,6 +204,8 @@ class CRM_Core_DAO_Translation extends CRM_Core_DAO {
           'entity' => 'Translation',
           'bao' => 'CRM_Core_BAO_Translation',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '5.39',
         ],
         'language' => [
index 92b4290322d9db3e14a02970ad1dae4038b96aff..b70e0ab1d2dabb36ab561aa77bc827f7ef2feb57 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e07b4f9c58827ac1460403ab699905ab)
+ * (GenCodeChecksum:c5bb2d5c455892b58bd0ae998f8f8116)
  */
 
 /**
@@ -239,22 +239,6 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
     return $plural ? ts('Profile Fields') : ts('Profile Field');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'uf_group_id', 'civicrm_uf_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_type_id', 'civicrm_location_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -304,6 +288,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_UFGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Profile"),
@@ -543,6 +528,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocationType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Location Type"),
           ],
index 58bf28dc4be5e08bbfb549ebc97d265837b73aab..0f744ab9a40e9017a0e671fd814e4dbb59d0b029 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6fc322aa33235bda47a6c3322173d741)
+ * (GenCodeChecksum:7e7f497a6e1fed5d867407723f1d4a33)
  */
 
 /**
@@ -310,23 +310,6 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
     return $plural ? ts('Profiles') : ts('Profile');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'limit_listings_group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'add_to_group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -539,6 +522,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Search Limit Group"),
           ],
@@ -584,6 +568,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Add Contact To Group"),
           ],
@@ -809,6 +794,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index f4ba1cc2bd28b26da67058e128f687777df69925..b2cd2efd57409381b9e18a3f1da2cdd4631b4df3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFJoin.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e11a1e64ca03c7ba82294c75de0dc4c4)
+ * (GenCodeChecksum:aec017870809d4d38daa4767c0ade45e)
  */
 
 /**
@@ -120,22 +120,6 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
     return $plural ? ts('Profile Uses') : ts('Profile Use');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'uf_group_id', 'civicrm_uf_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -251,6 +235,8 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'entity' => 'UFJoin',
           'bao' => 'CRM_Core_BAO_UFJoin',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.3',
         ],
         'weight' => [
@@ -291,6 +277,7 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFJoin',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_UFGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Profile"),
index e4cf97a975371896f202b75ac05574850b2959dd..df7f2ac81d0382e642137895b68dba73e39e4de3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFMatch.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:19280813191bcf496c8e43eb9778157a)
+ * (GenCodeChecksum:573747cc2ce1867945de4b241f7697c6)
  */
 
 /**
@@ -102,22 +102,6 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO {
     return $plural ? ts('User Accounts') : ts('User Account');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -167,6 +151,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFMatch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -233,6 +218,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UFMatch',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index effaa3447536a64b2a96c60ff385462a183ecd13..100a4010bf7ee6dadb188ecc0b1b0cc3644d1ec3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UserJob.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:03487d9109a74e0f60ee656055d205f7)
+ * (GenCodeChecksum:1dd5100f469beec27435f1444c73eeb5)
  */
 
 /**
@@ -163,22 +163,6 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
     return $plural ? ts('User Jobs') : ts('User Job');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'queue_id', 'civicrm_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -247,6 +231,7 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UserJob',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -420,6 +405,7 @@ class CRM_Core_DAO_UserJob extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_UserJob',
           'localizable' => 0,
           'FKClassName' => 'CRM_Queue_DAO_Queue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Queue"),
           ],
index 075b2b144ad8d1a4c85a4215d6a3bae31f086bbe..368e0de7e1688f5be39fee153ed430d4cacfe5fb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Website.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:782dd40595dfdc4b4a836c4f1c394929)
+ * (GenCodeChecksum:0bc5336361de1d2286a64abc50719968)
  */
 
 /**
@@ -98,21 +98,6 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO {
     return $plural ? ts('Websites') : ts('Website');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -161,6 +146,7 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Website',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index 95771f8b6cd9dba855f62485e27e5e67dab49def..06f45883c8615d85433e426c104c18d789ec8db6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/WordReplacement.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f212963034ccdf6c73970466b31552f3)
+ * (GenCodeChecksum:f9d6a1b7c34275dac925cde23c8a02be)
  */
 
 /**
@@ -100,21 +100,6 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
     return $plural ? ts('Word Replacements') : ts('Word Replacement');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -253,6 +238,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_WordReplacement',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
index e18a032650737d9fab3f7b5364d6e1a448d2af34..dbf9debde4a5979cabce86156c3a5d87c4e848ce 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/DedupeException.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1c0e7ffb2de1859052fd27537b100eb6)
+ * (GenCodeChecksum:4165d0a98662caa2de6fcefbde15c2e2)
  */
 
 /**
@@ -75,22 +75,6 @@ class CRM_Dedupe_DAO_DedupeException extends CRM_Core_DAO {
     return $plural ? ts('Dedupe Exceptions') : ts('Dedupe Exception');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id1', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id2', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -140,6 +124,7 @@ class CRM_Dedupe_DAO_DedupeException extends CRM_Core_DAO {
           'bao' => 'CRM_Dedupe_BAO_DedupeException',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("First Dupe Contact"),
           ],
@@ -163,6 +148,7 @@ class CRM_Dedupe_DAO_DedupeException extends CRM_Core_DAO {
           'bao' => 'CRM_Dedupe_BAO_DedupeException',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Second Dupe Contact"),
           ],
index 77fd3a6cad06bc3399b6dfab19f74fa1ce639594..058a8957159d186fbc12f4cae19a22d4c8d989ed 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/DedupeRule.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:61dda939bb4ad3a9ff3e07c06ec3712d)
+ * (GenCodeChecksum:bf2a66e6cf05d4aba90d5de0732674f0)
  */
 
 /**
@@ -102,21 +102,6 @@ class CRM_Dedupe_DAO_DedupeRule extends CRM_Core_DAO {
     return $plural ? ts('Dedupe Rules') : ts('Dedupe Rule');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dedupe_rule_group_id', 'civicrm_dedupe_rule_group', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -166,6 +151,7 @@ class CRM_Dedupe_DAO_DedupeRule extends CRM_Core_DAO {
           'bao' => 'CRM_Dedupe_BAO_DedupeRule',
           'localizable' => 0,
           'FKClassName' => 'CRM_Dedupe_DAO_DedupeRuleGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Group"),
           ],
index 70a4bba883682799b5ccf8c671881e127ff4159e..edbf11df8ee090968940de4a10e120ccb2cfafd9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Cart/Cart.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cb3e9b057ebe0f648e9efb2cf9bc800b)
+ * (GenCodeChecksum:8e893fbe5da167afb44ab4d4d108239c)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO {
     return $plural ? ts('Carts') : ts('Cart');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'user_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -137,6 +122,7 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO {
           'bao' => 'CRM_Event_Cart_BAO_Cart',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index 8792ffd80d0bc1695f4df0f99912dff120268997..f7ffdc0410c8580ea85830d68efbc5bcfc08ef68 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Cart/EventInCart.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1e58760fd44de010b38a2c59924fe99f)
+ * (GenCodeChecksum:53e6a1294997529a3b2babce613e214c)
  */
 
 /**
@@ -76,22 +76,6 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO {
     return $plural ? ts('Event In Carts') : ts('Event In Cart');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_id', 'civicrm_event', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_cart_id', 'civicrm_event_carts', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -140,6 +124,7 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO {
           'bao' => 'CRM_Event_Cart_BAO_EventInCart',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Event',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Event"),
           ],
@@ -162,6 +147,7 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO {
           'bao' => 'CRM_Event_Cart_BAO_EventInCart',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_Cart_DAO_Cart',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Event In Cart"),
           ],
index 81e431bd0834fd5d13646f3dd2b8cba367b914ae..32de78e3325cf906e592f2ce60f8df0f49a35ab8 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Event.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fd75d47cd23c3893174a0b55ba831894)
+ * (GenCodeChecksum:d63c53d10f2e09895a19061ea9d51093)
  */
 
 /**
@@ -711,24 +711,6 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
     return ts('Scheduled in-person or online events which contacts can register for and attend.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'loc_block_id', 'civicrm_loc_block', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dedupe_rule_group_id', 'civicrm_dedupe_rule_group', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -1297,6 +1279,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Event',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocBlock',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Location Block"),
           ],
@@ -2142,6 +2125,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Event',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -2217,6 +2201,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Event',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
@@ -2339,6 +2324,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Event',
           'localizable' => 0,
           'FKClassName' => 'CRM_Dedupe_DAO_DedupeRuleGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Dedupe Rule"),
index 51d9d34b00e3a26b2389c101cced0a9821d2cf2d..5821da04155398bf369712cb62c76211cb856e8a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Participant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:54acecd8443b824933d1cae2e77b2f8e)
+ * (GenCodeChecksum:9467fd6b3257cf173c367e78d7875b82)
  */
 
 /**
@@ -254,29 +254,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
     return ts('Records of contacts\' attendance and roles in events.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_id', 'civicrm_event', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'status_id', 'civicrm_participant_status_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'registered_by_id', 'civicrm_participant', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'discount_id', 'civicrm_discount', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'cart_id', 'civicrm_event_carts', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'transferred_to_contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -332,6 +309,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
@@ -359,6 +337,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Event',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Event"),
@@ -387,6 +366,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_ParticipantStatusType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Status"),
@@ -594,6 +574,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Participant',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Registered By Participant"),
           ],
@@ -617,6 +598,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Discount',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Discount"),
           ],
@@ -676,6 +658,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
@@ -724,6 +707,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_Cart_DAO_Cart',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Event Cart"),
           ],
@@ -768,6 +752,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Transferred to"),
           ],
@@ -790,6 +775,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Created By"),
index ee20bd110ec8a22dbc4506e013309c3a06db2dc6..68e9a12ec9d900222a476fd4d75fbd9dc038ef73 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/ParticipantPayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ef2987af3276c7d47393ce4d0b295605)
+ * (GenCodeChecksum:54606fa6b25d1f6db3229594b6e3eef0)
  */
 
 /**
@@ -76,22 +76,6 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO {
     return $plural ? ts('Participant Payments') : ts('Participant Payment');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'participant_id', 'civicrm_participant', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -141,6 +125,7 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_ParticipantPayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Participant',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Participant"),
           ],
@@ -164,6 +149,7 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_ParticipantPayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
index 366c93c61b2ef7eedb96c1859e6be0638509dfc0..30a7a459ff2b1fa97a44659d9582916afa2bce34 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/EntityFinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:73bd55d66da916d2b27113d0cd8ca6f7)
+ * (GenCodeChecksum:dc2ac86086d6245161241084f0bfdd45)
  */
 
 /**
@@ -105,22 +105,6 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO {
     return $plural ? ts('Entity Financial Accounts') : ts('Entity Financial Account');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_account_id', 'civicrm_financial_account', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -199,6 +183,8 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO {
           'entity' => 'EntityFinancialAccount',
           'bao' => 'CRM_Financial_BAO_EntityFinancialAccount',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Entity"),
@@ -249,6 +235,7 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_EntityFinancialAccount',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Account"),
index efeeb81080f03531bb4fee309102a9197245ee6f..06862ba847991b08088d33a5d7722a76a3bca32c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/EntityFinancialTrxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9147404f8b46a55b3a5a2f1351418b82)
+ * (GenCodeChecksum:9e34bfe525333d841625c6f0c43cc62e)
  */
 
 /**
@@ -90,22 +90,6 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO {
     return $plural ? ts('Entity Financial Trxns') : ts('Entity Financial Trxn');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_trxn_id', 'civicrm_financial_trxn', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -179,6 +163,8 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO {
           'entity' => 'EntityFinancialTrxn',
           'bao' => 'CRM_Financial_BAO_EntityFinancialTrxn',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '3.2',
         ],
         'financial_trxn_id' => [
@@ -197,6 +183,7 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_EntityFinancialTrxn',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialTrxn',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Financial Transaction"),
           ],
index f2d82c40d607aef49b76c78173456f1b51dffc5c..77259c4b975a4f334f7f2e658b0ddec8155216b0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0551f4c3b00db2c2fa9f7265bfce9c84)
+ * (GenCodeChecksum:c1a56dd20c19e96296f4f70a4a690893)
  */
 
 /**
@@ -196,22 +196,6 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
     return $plural ? ts('Financial Accounts') : ts('Financial Account');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_financial_account', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -281,6 +265,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -392,6 +377,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Parent"),
           ],
index 910aa5ad0465cecfe50c0c288ba185fa4e665ea9..1b37347fc1e5b4a3f1a82c4bd04e7ffa8b50820b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:87f954efec21c5b1d861f797e01a2838)
+ * (GenCodeChecksum:a8a10fc175856157ba11e9cdc5420e0f)
  */
 
 /**
@@ -146,23 +146,6 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
     return $plural ? ts('Financial Items') : ts('Financial Item');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_account_id', 'civicrm_financial_account', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -251,6 +234,7 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -350,6 +334,7 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Account"),
@@ -426,6 +411,8 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
           'entity' => 'FinancialItem',
           'bao' => 'CRM_Financial_BAO_FinancialItem',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '4.3',
         ],
       ];
index ebe1a0c6210e06ee7a1583cb8efa8565c0b42d0d..e104eb35ca778a6e1cc87c0b33f5ee1ffa8c1030 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:41175dc63ab7c3cc6ea7f66021c5607a)
+ * (GenCodeChecksum:56b888e49da4fb4fd30e68316b16f8a7)
  */
 
 /**
@@ -209,23 +209,6 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
     return $plural ? ts('Financial Trxns') : ts('Financial Trxn');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'from_financial_account_id', 'civicrm_financial_account', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'to_financial_account_id', 'civicrm_financial_account', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_processor_id', 'civicrm_payment_processor', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -273,6 +256,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialTrxn',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("From Account"),
@@ -301,6 +285,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialTrxn',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("To Account"),
@@ -544,6 +529,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_FinancialTrxn',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_PaymentProcessor',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Payment Processor"),
index 3e97f6ab8224842b38b98a434a118b4e9497ffc2..bc39174358e0a872e2a5472abe2260d8ea022ce2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentProcessor.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d3616bad5f2242f0fdb560d2b6d0cf87)
+ * (GenCodeChecksum:4f2a2d7198a66ebeb31aa0f8ae8640f7)
  */
 
 /**
@@ -264,22 +264,6 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO {
     return $plural ? ts('Payment Processors') : ts('Payment Processor');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_processor_type_id', 'civicrm_payment_processor_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -329,6 +313,7 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_PaymentProcessor',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -455,6 +440,7 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_BAO_PaymentProcessor',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_PaymentProcessorType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Type"),
           ],
index 9f4985fff26d0471c04eaafedc6e888de34e9988..46e9568493ac155a66c9688237a77beb64e4cc0b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentToken.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:24d43ecaed37e1b06affc775b7786b06)
+ * (GenCodeChecksum:e2af4137d7b9b510bbc239e5b829e5ba)
  */
 
 /**
@@ -164,23 +164,6 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO {
     return $plural ? ts('Payment Tokens') : ts('Payment Token');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_processor_id', 'civicrm_payment_processor', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -230,6 +213,7 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_DAO_PaymentToken',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -252,6 +236,7 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_DAO_PaymentToken',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_PaymentProcessor',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Payment Processor"),
           ],
@@ -314,6 +299,7 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO {
           'bao' => 'CRM_Financial_DAO_PaymentToken',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created"),
           ],
index 9eb4bac9d4dc834b80f8fc8d496f29e8b18dc3b0..a8f1583ed6ab55f49f06d60b0597ecec3d71e44d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Friend/Friend.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b837e6691ca658a0ba6bb86119518f13)
+ * (GenCodeChecksum:c9b5f756669b6fbb10e7c112d55b4c14)
  */
 
 /**
@@ -141,21 +141,6 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO {
     return $plural ? ts('Friends') : ts('Friend');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -225,6 +210,8 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO {
           'entity' => 'Friend',
           'bao' => 'CRM_Friend_BAO_Friend',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '2.0',
         ],
         'title' => [
index 59c03b0ada42f95774605afc4f709b66e899aa49..ed56a5d5d1569ee382b789e13583dbe5b20c0158 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/BouncePattern.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:23e0fd111536ca0e0ea158bf8cbb9b2c)
+ * (GenCodeChecksum:cb74ea782c1326413de34b89cab91124)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO {
     return $plural ? ts('Bounce Patterns') : ts('Bounce Pattern');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'bounce_type_id', 'civicrm_mailing_bounce_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -137,6 +122,7 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_BouncePattern',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_BounceType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Bounce Type"),
           ],
index 9b2d02c82cb4a1afab08929791f6568903adbeca..1ec69fe84fdec6e36d3de025654898039b2e50af 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Mailing.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:55608e7270f5f764477813403689775a)
+ * (GenCodeChecksum:919b743c8a46a78f155d417cc1bd0631)
  */
 
 /**
@@ -467,33 +467,6 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
     return ts('Mass emails sent from CiviMail.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'header_id', 'civicrm_mailing_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'footer_id', 'civicrm_mailing_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'reply_id', 'civicrm_mailing_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'unsubscribe_id', 'civicrm_mailing_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'optout_id', 'civicrm_mailing_component', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'msg_template_id', 'civicrm_msg_template', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'scheduled_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'approver_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'sms_provider_id', 'civicrm_sms_provider', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_type_id', 'civicrm_location_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -541,6 +514,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -568,6 +542,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingComponent',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Header"),
           ],
@@ -596,6 +571,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingComponent',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Footer"),
           ],
@@ -624,6 +600,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingComponent',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Reply"),
           ],
@@ -646,6 +623,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingComponent',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Unsubscribe"),
           ],
@@ -685,6 +663,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingComponent',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Opt Out"),
           ],
@@ -1054,6 +1033,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_MessageTemplate',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Message Template"),
           ],
@@ -1100,6 +1080,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Creator"),
           ],
@@ -1173,6 +1154,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Scheduled By"),
           ],
@@ -1220,6 +1202,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Approved By"),
           ],
@@ -1363,6 +1346,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
@@ -1415,6 +1399,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_SMS_DAO_Provider',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("SMS Provider"),
@@ -1459,6 +1444,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Mailing',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocationType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Location Type"),
           ],
index b050660c1c066cd3cca11e61c055b9827c3d8d07..46e575e70ec81c2823fe8501b0d6cedd273c572e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingAB.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d76d742acfe6647f447373ccf4380ecf)
+ * (GenCodeChecksum:bd7f5528773566cb04becedf849c5e1f)
  */
 
 /**
@@ -167,21 +167,6 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO {
     return $plural ? ts('Mailing ABs') : ts('Mailing AB');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -444,6 +429,7 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingAB',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
index e6f6f89db8a194b97cfcea77166179ed29b2027f..a65cca122c86c0835405e5495b424d83d63d92a8 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e274523a6e48c8b26fc29735e528ecdf)
+ * (GenCodeChecksum:65ad1f210e2b4be6f4608e72694619a3)
  */
 
 /**
@@ -110,22 +110,6 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO {
     return $plural ? ts('Mailing Groups') : ts('Mailing Group');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -174,6 +158,7 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_DAO_MailingGroup',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mailing"),
           ],
@@ -246,6 +231,8 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO {
           'entity' => 'MailingGroup',
           'bao' => 'CRM_Mailing_DAO_MailingGroup',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => NULL,
         ],
         'search_id' => [
index 65e1216d21f870f947c1a12d1917ce54a997ced4..da849dd5e4b7e3c1df74d3f3234f2712bd7a7a36 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingJob.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:92bce75ffec87400a53a47591c09201f)
+ * (GenCodeChecksum:61340ad6fba42d576e6289778b494bcc)
  */
 
 /**
@@ -155,22 +155,6 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
     return ts('Attempted delivery of a mailing.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_mailing_job', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -220,6 +204,7 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingJob',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Mailing"),
@@ -388,6 +373,7 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingJob',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingJob',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Parent"),
index 7c24fc5312240409c3a43f41755d158620096cc9..f74938af6dc47bc8007e6349c1f68e5dd54cc515 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingRecipients.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ed447baf02cd4238bdf58c200d40bc22)
+ * (GenCodeChecksum:bf17f03f0d47a6eda3deab64a581aec8)
  */
 
 /**
@@ -92,24 +92,6 @@ class CRM_Mailing_DAO_MailingRecipients extends CRM_Core_DAO {
     return $plural ? ts('Mailing Recipients') : ts('Mailing Recipient');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -158,6 +140,7 @@ class CRM_Mailing_DAO_MailingRecipients extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingRecipients',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mailing"),
           ],
@@ -181,6 +164,7 @@ class CRM_Mailing_DAO_MailingRecipients extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingRecipients',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
@@ -204,6 +188,7 @@ class CRM_Mailing_DAO_MailingRecipients extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingRecipients',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Email',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Email"),
           ],
@@ -227,6 +212,7 @@ class CRM_Mailing_DAO_MailingRecipients extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingRecipients',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Phone',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Phone"),
           ],
index 3f5f858cb78443ad98906d9d53260f0e02333b7f..76ad4f4c13a97d380f78ecb1ec3c7fc68694b3d6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingTrackableURL.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f446966734b2d351d7a1f8e7557dc08c)
+ * (GenCodeChecksum:ce6c77dd702379d639959d67e7980a78)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_DAO_MailingTrackableURL extends CRM_Core_DAO {
     return $plural ? ts('Mailing Links') : ts('Mailing Link');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -159,6 +144,7 @@ class CRM_Mailing_DAO_MailingTrackableURL extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_MailingTrackableURL',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Mailing"),
index 5b37bd51a147a3fd080acc002152f4bcaa97aa50..ba0cf1470f850a813d5d5d05f3c99a75298dff99 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Spool.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:96425332a4c99c7776ca872198de0fd6)
+ * (GenCodeChecksum:7c22f5a9de4a49ac64bf394c58b8cd4c)
  */
 
 /**
@@ -110,21 +110,6 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO {
     return $plural ? ts('Spools') : ts('Spool');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'job_id', 'civicrm_mailing_job', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -173,6 +158,7 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_Spool',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingJob',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Job"),
           ],
index c0b9e197a76bc491e5a71ff3e98d5041451a77cc..563173f245e32cc1943f433a76f17ef37f439ded 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventBounce.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b96900b12aa4dc97acf0b9aa873de1f5)
+ * (GenCodeChecksum:393a94b1b88af6753a4d32e77344eef3)
  */
 
 /**
@@ -101,21 +101,6 @@ class CRM_Mailing_Event_DAO_MailingEventBounce extends CRM_Core_DAO {
     return ts('Mailings that failed to reach the inbox of the recipient.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -165,6 +150,7 @@ class CRM_Mailing_Event_DAO_MailingEventBounce extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventBounce',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
index c7616494986833bb4e9d4a3ff89228c09c156aa1..a5e7305d2a2e96a443faba84dc120d4c966517a7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventConfirm.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6dfb0a8830b5a314a417b6f0f2b51e2b)
+ * (GenCodeChecksum:16533bf0c855436ec5a131998f481dcc)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_Event_DAO_MailingEventConfirm extends CRM_Core_DAO {
     return $plural ? ts('Mailing Opt-In Confirmations') : ts('Mailing Opt-In Confirmation');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_subscribe_id', 'civicrm_mailing_event_subscribe', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -138,6 +123,7 @@ class CRM_Mailing_Event_DAO_MailingEventConfirm extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventConfirm',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventSubscribe',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mailing Subscribe"),
           ],
index 783185107730da1ce074f6ceb7c21ecd986b5285..1d3df422328b634d83e115e1124728dece527771 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventDelivered.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:622f5bc6672f5fce5606f72f98661fc4)
+ * (GenCodeChecksum:8cbbe3fbdde3f1093237bf19ac9bd9e9)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_Event_DAO_MailingEventDelivered extends CRM_Core_DAO {
     return $plural ? ts('Mailing Deliveries') : ts('Mailing Delivery');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -138,6 +123,7 @@ class CRM_Mailing_Event_DAO_MailingEventDelivered extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventDelivered',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
index 00c9dd31a2200e495d6519b076e2963da57affaa..873ff1c24fe42cc573c02db0c79e5844a21aa8df 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventForward.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3e671ceef92366fa2bfd6121ec9dee4f)
+ * (GenCodeChecksum:610d9e35e6dee904928285f3a6d23f3d)
  */
 
 /**
@@ -83,22 +83,6 @@ class CRM_Mailing_Event_DAO_MailingEventForward extends CRM_Core_DAO {
     return $plural ? ts('Mailing Forwards') : ts('Mailing Forward');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dest_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -148,6 +132,7 @@ class CRM_Mailing_Event_DAO_MailingEventForward extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventForward',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
@@ -170,6 +155,7 @@ class CRM_Mailing_Event_DAO_MailingEventForward extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventForward',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Destination Queue"),
           ],
index c133384cbe725dab0e08867b48c12b6f5b9e6bd2..b7d609f48ad226c54835e4ef91919c2aced60e62 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventOpened.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af41b13d1cdb6968bedac3813c47f396)
+ * (GenCodeChecksum:0da200b083ab097f3efdafa091b209a0)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_Event_DAO_MailingEventOpened extends CRM_Core_DAO {
     return $plural ? ts('Mailings Opened') : ts('Mailing Opened');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -138,6 +123,7 @@ class CRM_Mailing_Event_DAO_MailingEventOpened extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventOpened',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
index d70082836c128ae753784b04336dd8ee6eab390d..b66c42b149f935e78cb62108fa4c178288ca70a1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventQueue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:afc9bb708b2cdc3fe9cc389059b0b58f)
+ * (GenCodeChecksum:2b49f3437ecc6f6d2bf0c45370cb1089)
  */
 
 /**
@@ -126,25 +126,6 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
     return ts('Intended recipients of a mailing.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'job_id', 'civicrm_mailing_job', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -194,6 +175,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingJob',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Outbound Mailing"),
           ],
@@ -217,6 +199,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_Mailing',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Mailing"),
           ],
@@ -263,6 +246,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Email',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Email"),
           ],
@@ -286,6 +270,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
@@ -330,6 +315,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Phone',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Phone"),
           ],
index 4e264070ba94e2e575bcbe62fabb8f2b29077549..7869d367de9a7e4afdc943fac5189a8d29cc961b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventReply.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3fb550581dbc39a87b575fa6b969126a)
+ * (GenCodeChecksum:9a804e1c42467f857e7146bcce53d89b)
  */
 
 /**
@@ -74,21 +74,6 @@ class CRM_Mailing_Event_DAO_MailingEventReply extends CRM_Core_DAO {
     return $plural ? ts('Mailing Replies') : ts('Mailing Reply');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -138,6 +123,7 @@ class CRM_Mailing_Event_DAO_MailingEventReply extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventReply',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
index a51e8f7ebe73938e24926912ba610f4f8c504bc0..85fb1a63b18a4ab83ece45230daec82c99850f8e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventSubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:36347f06a659937f286ada4125b4bff8)
+ * (GenCodeChecksum:4a66301754363df0906c1c83eaaf7962)
  */
 
 /**
@@ -92,22 +92,6 @@ class CRM_Mailing_Event_DAO_MailingEventSubscribe extends CRM_Core_DAO {
     return $plural ? ts('Mailing Opt-Ins') : ts('Mailing Opt-In');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -157,6 +141,7 @@ class CRM_Mailing_Event_DAO_MailingEventSubscribe extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventSubscribe',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Group',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Group"),
@@ -186,6 +171,7 @@ class CRM_Mailing_Event_DAO_MailingEventSubscribe extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventSubscribe',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contact"),
           ],
index 39def319dd82b0e96c73b956850a5e413872b426..b983fd0a4f40d62f58b983d81f0ae3753cc39689 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventTrackableURLOpen.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6b5080d5367785fa44add485df62cba5)
+ * (GenCodeChecksum:c1fa35951b41c5f3e8c12652214fd591)
  */
 
 /**
@@ -83,22 +83,6 @@ class CRM_Mailing_Event_DAO_MailingEventTrackableURLOpen extends CRM_Core_DAO {
     return $plural ? ts('Mailing Link Clickthroughs') : ts('Mailing Link Clickthrough');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'trackable_url_id', 'civicrm_mailing_trackable_url', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -148,6 +132,7 @@ class CRM_Mailing_Event_DAO_MailingEventTrackableURLOpen extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventTrackableURLOpen',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Recipient"),
@@ -172,6 +157,7 @@ class CRM_Mailing_Event_DAO_MailingEventTrackableURLOpen extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventTrackableURLOpen',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_MailingTrackableURL',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Mailing Link"),
index 9d095109cfa0a1a90406e54067b45ebd89506a4e..a5d00022f1f9a1f8d8190f946ad0ff3a65099ca4 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/MailingEventUnsubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cf2ca57c500dd6c00c7011f82a74c360)
+ * (GenCodeChecksum:896e4dab857ee0a19da7d4ee899c1084)
  */
 
 /**
@@ -83,21 +83,6 @@ class CRM_Mailing_Event_DAO_MailingEventUnsubscribe extends CRM_Core_DAO {
     return $plural ? ts('Mailing Unsubscribes') : ts('Mailing Unsubscribe');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -147,6 +132,7 @@ class CRM_Mailing_Event_DAO_MailingEventUnsubscribe extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_Event_BAO_MailingEventUnsubscribe',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_Event_DAO_MailingEventQueue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recipient"),
           ],
index bdebee1760f290098c14da3c5142f0da67f72a69..030554f3a6e4eb8b5eb2fcb7ed7098de96ce94b5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/Membership.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:607cc8bc4dd07d1a87529f923a421937)
+ * (GenCodeChecksum:663eaa9d986f476eb6721540840a643d)
  */
 
 /**
@@ -215,26 +215,6 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
     return ts('Records of contacts belonging to an organization\'s membership program.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_id', 'civicrm_membership_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'status_id', 'civicrm_membership_status', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'owner_membership_id', 'civicrm_membership', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -291,6 +271,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
@@ -318,6 +299,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Membership Type"),
@@ -453,6 +435,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipStatus',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Status"),
@@ -533,6 +516,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_Membership',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Primary Member"),
           ],
@@ -629,6 +613,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Recurring Contribution"),
           ],
@@ -653,6 +638,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_Membership',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index 494203f63992943d48c50f14ac67948ea06bc82d..39a97a6c8a7d0e53028ac6779cd0f7afb7d400e5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a79f50e3b6f6922604ad809e6791f816)
+ * (GenCodeChecksum:8570f61c5c934d765c3d8d47edcfdc36)
  */
 
 /**
@@ -166,22 +166,6 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO {
     return $plural ? ts('Membership Blocks') : ts('Membership Block');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'entity_id', 'civicrm_contribution_page', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_default', 'civicrm_membership_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -251,6 +235,7 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Entity"),
           ],
@@ -294,6 +279,7 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Default Type"),
           ],
index 788386f6aab1ca947bfda9ad8a5b5f3cc2787d1d..2525d76ab584548084d7ce15b0f8a887d8d4794c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7623425db0f4b365b48211d621abb084)
+ * (GenCodeChecksum:ef568df305bf840b719c242e610d6519)
  */
 
 /**
@@ -128,24 +128,6 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
     return $plural ? ts('Membership Logs') : ts('Membership Log');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_id', 'civicrm_membership', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'status_id', 'civicrm_membership_status', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_id', 'civicrm_membership_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -194,6 +176,7 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_Membership',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Membership"),
           ],
@@ -217,6 +200,7 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipStatus',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Membership Status"),
           ],
@@ -277,6 +261,7 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Modified By"),
           ],
@@ -319,6 +304,7 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipLog',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Membership Type"),
           ],
index 9c74d40efeae1490f9495a954e400387bd17266d..21edc4d3bf2ff3b0620a77a2330ee571948f2240 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipPayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:da3ef13818ef6db9566c0ae8d68c4294)
+ * (GenCodeChecksum:44c05454d437ff852f4cf0a9b4b005f0)
  */
 
 /**
@@ -74,22 +74,6 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO {
     return $plural ? ts('Membership Payments') : ts('Membership Payment');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_id', 'civicrm_membership', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -138,6 +122,7 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipPayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_Membership',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Membership"),
           ],
@@ -160,6 +145,7 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipPayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
index 037a78d650a9f3c1973d2bc24d8f26b5ea206bbe..4d1bce9cdbe15ec4adbf654341fe1171315236e0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8a9c8c3f1c06a6a9bdae9ca67a05a77d)
+ * (GenCodeChecksum:bf10593b5e20b28573e422fadfe689a7)
  */
 
 /**
@@ -239,23 +239,6 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
     return $plural ? ts('Membership Types') : ts('Membership Type');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'member_of_contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -305,6 +288,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipType',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -384,6 +368,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipType',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Organization"),
           ],
@@ -407,6 +392,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
           'bao' => 'CRM_Member_BAO_MembershipType',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Financial Type"),
           ],
index dcde0a7032f82fec77e8bc153be5b3296d605eff..eee6a7bc09f0621e73d7cd4e3205ef9d657fff27 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCP.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0266b37c32174bdf3957a1b4104b03bc)
+ * (GenCodeChecksum:be838855e518a084a4da2a98fe52480d)
  */
 
 /**
@@ -186,21 +186,6 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
     return $plural ? ts('Personal Campaign Pages') : ts('Personal Campaign Page');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -250,6 +235,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'bao' => 'CRM_PCP_BAO_PCP',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
index 170eab95f64140405fe79b2620d0dbde89385900..ebf84f67ac315719f647fdbc94fb1f59fbc4c009 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCPBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:59afb1ccb33634e9177906f142c87ddd)
+ * (GenCodeChecksum:aa66cc545cf04e5ea640df960af2ddea)
  */
 
 /**
@@ -164,23 +164,6 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
     return $plural ? ts('Personal Campaign Blocks') : ts('Personal Campaign Block');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'supporter_profile_id', 'civicrm_uf_group', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'target_entity_id', NULL, 'id', 'target_entity_type');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -248,6 +231,8 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
           'entity' => 'PCPBlock',
           'bao' => 'CRM_PCP_BAO_PCPBlock',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '2.2',
         ],
         'target_entity_type' => [
@@ -289,6 +274,8 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
           'entity' => 'PCPBlock',
           'bao' => 'CRM_PCP_BAO_PCPBlock',
           'localizable' => 0,
+          'DFKEntityColumn' => 'target_entity_type',
+          'FKColumnName' => 'id',
           'add' => '4.1',
         ],
         'supporter_profile_id' => [
@@ -309,6 +296,7 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
           'bao' => 'CRM_PCP_BAO_PCPBlock',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_UFGroup',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Supporter Profile"),
           ],
index 757bd5aa663d6742aa86ad8d94eee0827dcc06e5..d658126d7e5f8cbd39dea90f193cfd8ce6a80fbb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/Pledge.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:91fbbe8481e26df491af63fd07594f20)
+ * (GenCodeChecksum:0e5accbafc151eeed6b7a5de6d194e84)
  */
 
 /**
@@ -282,24 +282,6 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
     return ts('Promises to contribute at a future time, either in full, or at regular intervals until a total goal is reached.');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -353,6 +335,7 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_Pledge',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contact"),
@@ -376,6 +359,7 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_Pledge',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
@@ -404,6 +388,7 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_Pledge',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Contribution Page"),
           ],
@@ -870,6 +855,7 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_Pledge',
           'localizable' => 0,
           'FKClassName' => 'CRM_Campaign_DAO_Campaign',
+          'FKColumnName' => 'id',
           'component' => 'CiviCampaign',
           'html' => [
             'type' => 'EntityRef',
index 89096f33114616ba68971e7d0dc1ffc12d8602f1..bf17861d131e98b53a5c34900849fece9d10c775 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/PledgeBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:10d706ed0732ee50f39b79dc2a1c52f1)
+ * (GenCodeChecksum:f085d7cb178f9fcb0441c9229e317ec5)
  */
 
 /**
@@ -148,21 +148,6 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
     return $plural ? ts('Pledge Blocks') : ts('Pledge Block');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -231,6 +216,8 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
           'entity' => 'PledgeBlock',
           'bao' => 'CRM_Pledge_BAO_PledgeBlock',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '2.1',
         ],
         'pledge_frequency_unit' => [
index 5702cedc071757ef18a1cf2815dc869f195ca15d..a290fac0e74d70d04c27b6598507f93fc2a2e2ff 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Pledge/PledgePayment.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a547e9089cb9b1d11fd408c1ffa88c10)
+ * (GenCodeChecksum:dd7ee360635e8fd3f8cfc484378f67b2)
  */
 
 /**
@@ -135,22 +135,6 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO {
     return $plural ? ts('Pledge Payments') : ts('Pledge Payment');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'pledge_id', 'civicrm_pledge', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -201,6 +185,7 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_PledgePayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Pledge_DAO_Pledge',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Pledge"),
           ],
@@ -223,6 +208,7 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO {
           'bao' => 'CRM_Pledge_BAO_PledgePayment',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
index 947487dbaa1b2a8064494122e1ab11d84f754470..68847edddad5701d1de6766508ec82eb07bdada9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/LineItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:31531e3ea507e80f8c57ccecbdf28735)
+ * (GenCodeChecksum:4ed8cb9b05a2f47927b4fcfdefc6acc4)
  */
 
 /**
@@ -191,25 +191,6 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
     return $plural ? ts('Line Items') : ts('Line Item');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contribution_id', 'civicrm_contribution', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_field_id', 'civicrm_price_field', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_field_value_id', 'civicrm_price_field_value', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -282,6 +263,8 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'entity' => 'LineItem',
           'bao' => 'CRM_Price_BAO_LineItem',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.7',
         ],
         'contribution_id' => [
@@ -301,6 +284,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_LineItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contribute_DAO_Contribution',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Contribution"),
@@ -324,6 +308,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_LineItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceField',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Price Field"),
@@ -476,6 +461,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_LineItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceFieldValue',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Option"),
           ],
@@ -505,6 +491,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_LineItem',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
index ccc233e7c3343b25cccb95f1d7bcfb43272f5284..4027b35e8d026dcc69189eef783bc17d39d398f7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f41e66e916d22789b0a328cab214e1ed)
+ * (GenCodeChecksum:3c89e8cae44de908cbe9946b74e8dead)
  */
 
 /**
@@ -220,21 +220,6 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO {
     return $plural ? ts('Price Fields') : ts('Price Field');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_set_id', 'civicrm_price_set', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -284,6 +269,7 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceSet',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Price Set"),
index 07e9481d7f08288aac332d0a57e91787fd741217..1fbe097523d3b563c0bbe480a542cf6940ec67ec 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceFieldValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1a91c79d5269c3dd811610148bc4af43)
+ * (GenCodeChecksum:9fe8e00e503d24fc46fd8f0d94cf4b55)
  */
 
 /**
@@ -231,23 +231,6 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
     return $plural ? ts('Price Field Values') : ts('Price Field Value');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_field_id', 'civicrm_price_field', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_id', 'civicrm_membership_type', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -297,6 +280,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceField',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Price Field"),
@@ -538,6 +522,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Member_DAO_MembershipType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'EntityRef',
             'label' => ts("Membership Type"),
@@ -633,6 +618,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
index 78294b3e442d4ceb535484dbac736376d654fbe0..ee3735f7348362d9fea0e8a81665c6272ce7b766 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSet.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:26eb3f354cdcccf189c881d2ff2fa4c2)
+ * (GenCodeChecksum:92854c16878bd3b29650b6e2230255a9)
  */
 
 /**
@@ -186,22 +186,6 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
     return $plural ? ts('Price Sets') : ts('Price Set');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -251,6 +235,7 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceSet',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Text',
             'label' => ts("Domain"),
@@ -450,6 +435,7 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceSet',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+          'FKColumnName' => 'id',
           'html' => [
             'type' => 'Select',
             'label' => ts("Financial Type"),
index af7f9f4e985cf90ec33dcdd60f32c26c192797d4..d5c11dbbb6be3ee604d1daa74f7b42b9bbc97d80 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSetEntity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8965ad7e7c8761ea623e96c7908b0614)
+ * (GenCodeChecksum:f1affb16f087370afd28e790a9113d60)
  */
 
 /**
@@ -85,22 +85,6 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO {
     return $plural ? ts('Price Set Entities') : ts('Price Set Entity');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_set_id', 'civicrm_price_set', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -170,6 +154,8 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO {
           'entity' => 'PriceSetEntity',
           'bao' => 'CRM_Price_DAO_PriceSetEntity',
           'localizable' => 0,
+          'DFKEntityColumn' => 'entity_table',
+          'FKColumnName' => 'id',
           'add' => '1.8',
         ],
         'price_set_id' => [
@@ -190,6 +176,7 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO {
           'bao' => 'CRM_Price_DAO_PriceSetEntity',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceSet',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Price Set"),
           ],
index 1b097908132c2bf80871eee7c1d6896f4c342a8f..44b426f9ea7bc85e6126429f3c5e203e2f540c61 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Report/ReportInstance.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7434f5737d99543263d96a6b16c9ae99)
+ * (GenCodeChecksum:cec2ca039dc9ba4361ac9064b76e4a66)
  */
 
 /**
@@ -250,25 +250,6 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
     return $plural ? ts('Reports') : ts('Report');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'owner_id', 'civicrm_contact', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'navigation_id', 'civicrm_navigation', 'id');
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'drilldown_id', 'civicrm_report_instance', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -318,6 +299,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'bao' => 'CRM_Report_BAO_ReportInstance',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],
@@ -557,6 +539,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'bao' => 'CRM_Report_BAO_ReportInstance',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Created By"),
           ],
@@ -579,6 +562,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'bao' => 'CRM_Report_BAO_ReportInstance',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Owned By"),
           ],
@@ -714,6 +698,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'bao' => 'CRM_Report_BAO_ReportInstance',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Navigation',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Navigation"),
           ],
@@ -738,6 +723,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'bao' => 'CRM_Report_BAO_ReportInstance',
           'localizable' => 0,
           'FKClassName' => 'CRM_Report_DAO_ReportInstance',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Drilldown Report"),
           ],
index c3af7351b66a2314dbf78959f5bfd875f8f086fd..3b6c01db974c0241e87d9af25b412abf33758dc0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/SMS/Provider.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d570203bb9be927ba5276f3c2043d45)
+ * (GenCodeChecksum:d4af7847dcc050195f510ffd2c02c147)
  */
 
 /**
@@ -156,21 +156,6 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
     return $plural ? ts('SMS Providers') : ts('SMS Provider');
   }
 
-  /**
-   * Returns foreign keys and entity references.
-   *
-   * @return array
-   *   [CRM_Core_Reference_Interface]
-   */
-  public static function getReferenceColumns() {
-    if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
-      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
-      CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
-    }
-    return Civi::$statics[__CLASS__]['links'];
-  }
-
   /**
    * Returns all the column names of this table
    *
@@ -421,6 +406,7 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
           'bao' => 'CRM_SMS_BAO_Provider',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
+          'FKColumnName' => 'id',
           'html' => [
             'label' => ts("Domain"),
           ],