From c863afacc82f7bb2068a459c0112eb8694956dde Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 1 Jan 2024 23:25:47 -0500 Subject: [PATCH] Regenerate Core DAO files without boilerplate getReferenceColumns() --- CRM/ACL/DAO/ACL.php | 19 ++------- CRM/ACL/DAO/ACLCache.php | 18 +------- CRM/ACL/DAO/ACLEntityRole.php | 19 ++------- CRM/Activity/DAO/Activity.php | 26 +++--------- CRM/Activity/DAO/ActivityContact.php | 20 ++------- CRM/Batch/DAO/Batch.php | 22 ++-------- CRM/Batch/DAO/EntityBatch.php | 21 ++-------- CRM/Campaign/DAO/Campaign.php | 22 ++-------- CRM/Campaign/DAO/CampaignGroup.php | 21 ++-------- CRM/Campaign/DAO/Survey.php | 22 ++-------- CRM/Case/DAO/Case.php | 18 +------- CRM/Case/DAO/CaseActivity.php | 20 ++------- CRM/Case/DAO/CaseContact.php | 20 ++------- CRM/Contact/DAO/Contact.php | 20 ++------- CRM/Contact/DAO/ContactType.php | 18 +------- CRM/Contact/DAO/DashboardContact.php | 20 ++------- CRM/Contact/DAO/Group.php | 22 ++-------- CRM/Contact/DAO/GroupContact.php | 24 +++-------- CRM/Contact/DAO/GroupContactCache.php | 20 ++------- CRM/Contact/DAO/GroupNesting.php | 20 ++------- CRM/Contact/DAO/GroupOrganization.php | 20 ++------- CRM/Contact/DAO/Relationship.php | 24 +++-------- CRM/Contact/DAO/RelationshipCache.php | 26 +++--------- CRM/Contact/DAO/SavedSearch.php | 22 ++-------- CRM/Contact/DAO/SubscriptionHistory.php | 20 ++------- CRM/Contribute/DAO/Contribution.php | 28 ++++--------- CRM/Contribute/DAO/ContributionPage.php | 22 ++-------- CRM/Contribute/DAO/ContributionProduct.php | 22 ++-------- CRM/Contribute/DAO/ContributionRecur.php | 26 +++--------- CRM/Contribute/DAO/ContributionSoft.php | 22 ++-------- CRM/Contribute/DAO/Premium.php | 19 ++------- CRM/Contribute/DAO/PremiumsProduct.php | 22 ++-------- CRM/Contribute/DAO/Product.php | 18 +------- CRM/Contribute/DAO/Widget.php | 18 +------- CRM/Core/DAO/ActionLog.php | 23 +++------- CRM/Core/DAO/ActionSchedule.php | 24 +++-------- CRM/Core/DAO/Address.php | 26 +++--------- CRM/Core/DAO/Cache.php | 18 +------- CRM/Core/DAO/Country.php | 20 ++------- CRM/Core/DAO/County.php | 18 +------- CRM/Core/DAO/CustomField.php | 20 ++------- CRM/Core/DAO/CustomGroup.php | 18 +------- CRM/Core/DAO/Dashboard.php | 18 +------- CRM/Core/DAO/Discount.php | 21 ++-------- CRM/Core/DAO/Domain.php | 18 +------- CRM/Core/DAO/Email.php | 18 +------- CRM/Core/DAO/EntityFile.php | 21 ++-------- CRM/Core/DAO/EntityTag.php | 21 ++-------- CRM/Core/DAO/File.php | 18 +------- CRM/Core/DAO/IM.php | 18 +------- CRM/Core/DAO/Job.php | 18 +------- CRM/Core/DAO/JobLog.php | 20 ++------- CRM/Core/DAO/LocBlock.php | 32 ++++---------- CRM/Core/DAO/Log.php | 21 ++-------- CRM/Core/DAO/MailSettings.php | 20 ++------- CRM/Core/DAO/MappingField.php | 22 ++-------- CRM/Core/DAO/Menu.php | 20 ++------- CRM/Core/DAO/Navigation.php | 20 ++------- CRM/Core/DAO/Note.php | 21 ++-------- CRM/Core/DAO/OpenID.php | 18 +------- CRM/Core/DAO/OptionValue.php | 22 ++-------- CRM/Core/DAO/Phone.php | 18 +------- CRM/Core/DAO/PrintLabel.php | 18 +------- CRM/Core/DAO/Setting.php | 24 +++-------- CRM/Core/DAO/StateProvince.php | 18 +------- CRM/Core/DAO/StatusPreference.php | 18 +------- CRM/Core/DAO/Tag.php | 20 ++------- CRM/Core/DAO/Timezone.php | 18 +------- CRM/Core/DAO/Translation.php | 19 ++------- CRM/Core/DAO/UFField.php | 20 ++------- CRM/Core/DAO/UFGroup.php | 22 ++-------- CRM/Core/DAO/UFJoin.php | 21 ++-------- CRM/Core/DAO/UFMatch.php | 20 ++------- CRM/Core/DAO/UserJob.php | 20 ++------- CRM/Core/DAO/Website.php | 18 +------- CRM/Core/DAO/WordReplacement.php | 18 +------- CRM/Dedupe/DAO/DedupeException.php | 20 ++------- CRM/Dedupe/DAO/DedupeRule.php | 18 +------- CRM/Event/Cart/DAO/Cart.php | 18 +------- CRM/Event/Cart/DAO/EventInCart.php | 20 ++------- CRM/Event/DAO/Event.php | 24 +++-------- CRM/Event/DAO/Participant.php | 34 +++++---------- CRM/Event/DAO/ParticipantPayment.php | 20 ++------- CRM/Financial/DAO/EntityFinancialAccount.php | 21 ++-------- CRM/Financial/DAO/EntityFinancialTrxn.php | 21 ++-------- CRM/Financial/DAO/FinancialAccount.php | 20 ++------- CRM/Financial/DAO/FinancialItem.php | 23 +++------- CRM/Financial/DAO/FinancialTrxn.php | 22 ++-------- CRM/Financial/DAO/PaymentProcessor.php | 20 ++------- CRM/Financial/DAO/PaymentToken.php | 22 ++-------- CRM/Friend/DAO/Friend.php | 19 ++------- CRM/Mailing/DAO/BouncePattern.php | 18 +------- CRM/Mailing/DAO/Mailing.php | 42 +++++++------------ CRM/Mailing/DAO/MailingAB.php | 18 +------- CRM/Mailing/DAO/MailingGroup.php | 21 ++-------- CRM/Mailing/DAO/MailingJob.php | 20 ++------- CRM/Mailing/DAO/MailingRecipients.php | 24 +++-------- CRM/Mailing/DAO/MailingTrackableURL.php | 18 +------- CRM/Mailing/DAO/Spool.php | 18 +------- CRM/Mailing/Event/DAO/MailingEventBounce.php | 18 +------- CRM/Mailing/Event/DAO/MailingEventConfirm.php | 18 +------- .../Event/DAO/MailingEventDelivered.php | 18 +------- CRM/Mailing/Event/DAO/MailingEventForward.php | 20 ++------- CRM/Mailing/Event/DAO/MailingEventOpened.php | 18 +------- CRM/Mailing/Event/DAO/MailingEventQueue.php | 26 +++--------- CRM/Mailing/Event/DAO/MailingEventReply.php | 18 +------- .../Event/DAO/MailingEventSubscribe.php | 20 ++------- .../DAO/MailingEventTrackableURLOpen.php | 20 ++------- .../Event/DAO/MailingEventUnsubscribe.php | 18 +------- CRM/Member/DAO/Membership.php | 28 ++++--------- CRM/Member/DAO/MembershipBlock.php | 20 ++------- CRM/Member/DAO/MembershipLog.php | 24 +++-------- CRM/Member/DAO/MembershipPayment.php | 20 ++------- CRM/Member/DAO/MembershipType.php | 22 ++-------- CRM/PCP/DAO/PCP.php | 18 +------- CRM/PCP/DAO/PCPBlock.php | 24 +++-------- CRM/Pledge/DAO/Pledge.php | 24 +++-------- CRM/Pledge/DAO/PledgeBlock.php | 19 ++------- CRM/Pledge/DAO/PledgePayment.php | 20 ++------- CRM/Price/DAO/LineItem.php | 27 ++++-------- CRM/Price/DAO/PriceField.php | 18 +------- CRM/Price/DAO/PriceFieldValue.php | 22 ++-------- CRM/Price/DAO/PriceSet.php | 20 ++------- CRM/Price/DAO/PriceSetEntity.php | 21 ++-------- CRM/Report/DAO/ReportInstance.php | 26 +++--------- CRM/SMS/DAO/Provider.php | 18 +------- 126 files changed, 446 insertions(+), 2187 deletions(-) diff --git a/CRM/ACL/DAO/ACL.php b/CRM/ACL/DAO/ACL.php index 9141c0775b..8655c83717 100644 --- a/CRM/ACL/DAO/ACL.php +++ b/CRM/ACL/DAO/ACL.php @@ -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', diff --git a/CRM/ACL/DAO/ACLCache.php b/CRM/ACL/DAO/ACLCache.php index 8e4fe54bc5..5687af27e2 100644 --- a/CRM/ACL/DAO/ACLCache.php +++ b/CRM/ACL/DAO/ACLCache.php @@ -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"), ], diff --git a/CRM/ACL/DAO/ACLEntityRole.php b/CRM/ACL/DAO/ACLEntityRole.php index 1731025175..795da1199f 100644 --- a/CRM/ACL/DAO/ACLEntityRole.php +++ b/CRM/ACL/DAO/ACLEntityRole.php @@ -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' => [ diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 01b51f9e48..d24acdc68f 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -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', diff --git a/CRM/Activity/DAO/ActivityContact.php b/CRM/Activity/DAO/ActivityContact.php index 374cf1da53..7e7ae06755 100644 --- a/CRM/Activity/DAO/ActivityContact.php +++ b/CRM/Activity/DAO/ActivityContact.php @@ -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"), ], diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index 1e37aad6d5..b0731fcf15 100644 --- a/CRM/Batch/DAO/Batch.php +++ b/CRM/Batch/DAO/Batch.php @@ -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"), diff --git a/CRM/Batch/DAO/EntityBatch.php b/CRM/Batch/DAO/EntityBatch.php index a3e175d2ea..3f49ec82b2 100644 --- a/CRM/Batch/DAO/EntityBatch.php +++ b/CRM/Batch/DAO/EntityBatch.php @@ -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"), ], diff --git a/CRM/Campaign/DAO/Campaign.php b/CRM/Campaign/DAO/Campaign.php index 8fc7bac9a8..e30faa1152 100644 --- a/CRM/Campaign/DAO/Campaign.php +++ b/CRM/Campaign/DAO/Campaign.php @@ -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"), ], diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php index 5fd725d839..f57f680fac 100644 --- a/CRM/Campaign/DAO/CampaignGroup.php +++ b/CRM/Campaign/DAO/CampaignGroup.php @@ -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', ], ]; diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php index bfaaf383bc..8e083d7d89 100644 --- a/CRM/Campaign/DAO/Survey.php +++ b/CRM/Campaign/DAO/Survey.php @@ -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"), ], diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php index 0040838019..ad30a3f24f 100644 --- a/CRM/Case/DAO/Case.php +++ b/CRM/Case/DAO/Case.php @@ -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"), diff --git a/CRM/Case/DAO/CaseActivity.php b/CRM/Case/DAO/CaseActivity.php index ca2031bfbb..422de4f514 100644 --- a/CRM/Case/DAO/CaseActivity.php +++ b/CRM/Case/DAO/CaseActivity.php @@ -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"), ], diff --git a/CRM/Case/DAO/CaseContact.php b/CRM/Case/DAO/CaseContact.php index 5585644ca3..44e776cf23 100644 --- a/CRM/Case/DAO/CaseContact.php +++ b/CRM/Case/DAO/CaseContact.php @@ -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"), diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index f6b08d4ddd..5dcd385879 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -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"), diff --git a/CRM/Contact/DAO/ContactType.php b/CRM/Contact/DAO/ContactType.php index f191194fc0..26bc5c406c 100644 --- a/CRM/Contact/DAO/ContactType.php +++ b/CRM/Contact/DAO/ContactType.php @@ -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"), diff --git a/CRM/Contact/DAO/DashboardContact.php b/CRM/Contact/DAO/DashboardContact.php index 39fa966eea..2b56d1455a 100644 --- a/CRM/Contact/DAO/DashboardContact.php +++ b/CRM/Contact/DAO/DashboardContact.php @@ -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"), ], diff --git a/CRM/Contact/DAO/Group.php b/CRM/Contact/DAO/Group.php index c75afb4b9f..b606f18493 100644 --- a/CRM/Contact/DAO/Group.php +++ b/CRM/Contact/DAO/Group.php @@ -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"), ], diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php index cd57fc2542..42c2c1514a 100644 --- a/CRM/Contact/DAO/GroupContact.php +++ b/CRM/Contact/DAO/GroupContact.php @@ -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"), ], diff --git a/CRM/Contact/DAO/GroupContactCache.php b/CRM/Contact/DAO/GroupContactCache.php index 4d022814b2..0ec9b07a6d 100644 --- a/CRM/Contact/DAO/GroupContactCache.php +++ b/CRM/Contact/DAO/GroupContactCache.php @@ -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"), ], diff --git a/CRM/Contact/DAO/GroupNesting.php b/CRM/Contact/DAO/GroupNesting.php index 476c4e449a..edd3429fde 100644 --- a/CRM/Contact/DAO/GroupNesting.php +++ b/CRM/Contact/DAO/GroupNesting.php @@ -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"), ], diff --git a/CRM/Contact/DAO/GroupOrganization.php b/CRM/Contact/DAO/GroupOrganization.php index 82b10572fd..2651a40083 100644 --- a/CRM/Contact/DAO/GroupOrganization.php +++ b/CRM/Contact/DAO/GroupOrganization.php @@ -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"), ], diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index bff75bc0d9..0527cf7243 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -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', diff --git a/CRM/Contact/DAO/RelationshipCache.php b/CRM/Contact/DAO/RelationshipCache.php index dd4aee80d0..3351c6a2d7 100644 --- a/CRM/Contact/DAO/RelationshipCache.php +++ b/CRM/Contact/DAO/RelationshipCache.php @@ -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', diff --git a/CRM/Contact/DAO/SavedSearch.php b/CRM/Contact/DAO/SavedSearch.php index 5d5917b55b..81a8ef3819 100644 --- a/CRM/Contact/DAO/SavedSearch.php +++ b/CRM/Contact/DAO/SavedSearch.php @@ -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"), ], diff --git a/CRM/Contact/DAO/SubscriptionHistory.php b/CRM/Contact/DAO/SubscriptionHistory.php index 422a1bb43f..d3dae02654 100644 --- a/CRM/Contact/DAO/SubscriptionHistory.php +++ b/CRM/Contact/DAO/SubscriptionHistory.php @@ -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"), diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index 8295fc4027..af1c99d6d6 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -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', diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php index 7bfa94ce5f..da7d644988 100644 --- a/CRM/Contribute/DAO/ContributionPage.php +++ b/CRM/Contribute/DAO/ContributionPage.php @@ -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', diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php index e9c118b70f..66a2b4e4cc 100644 --- a/CRM/Contribute/DAO/ContributionProduct.php +++ b/CRM/Contribute/DAO/ContributionProduct.php @@ -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"), ], diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index d273ea166a..2efe3a32c5 100644 --- a/CRM/Contribute/DAO/ContributionRecur.php +++ b/CRM/Contribute/DAO/ContributionRecur.php @@ -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', diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index 3e16c2d8a2..c13707cb79 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -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"), ], diff --git a/CRM/Contribute/DAO/Premium.php b/CRM/Contribute/DAO/Premium.php index 31395e66e5..543c803b6b 100644 --- a/CRM/Contribute/DAO/Premium.php +++ b/CRM/Contribute/DAO/Premium.php @@ -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' => [ diff --git a/CRM/Contribute/DAO/PremiumsProduct.php b/CRM/Contribute/DAO/PremiumsProduct.php index 3ad78b4765..59bc02a595 100644 --- a/CRM/Contribute/DAO/PremiumsProduct.php +++ b/CRM/Contribute/DAO/PremiumsProduct.php @@ -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"), ], diff --git a/CRM/Contribute/DAO/Product.php b/CRM/Contribute/DAO/Product.php index 5cb1e55761..ac5483122b 100644 --- a/CRM/Contribute/DAO/Product.php +++ b/CRM/Contribute/DAO/Product.php @@ -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"), ], diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php index 3ae505b85c..f762f597bc 100644 --- a/CRM/Contribute/DAO/Widget.php +++ b/CRM/Contribute/DAO/Widget.php @@ -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"), ], diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index d86e2f5c3f..b7e57e2ffb 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -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"), ], diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index bde4d69376..3078d4aa9a 100644 --- a/CRM/Core/DAO/ActionSchedule.php +++ b/CRM/Core/DAO/ActionSchedule.php @@ -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"), diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php index 1ae80842eb..2d3b5ce058 100644 --- a/CRM/Core/DAO/Address.php +++ b/CRM/Core/DAO/Address.php @@ -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"), ], diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php index e1cc2aecd9..dcb29e16f8 100644 --- a/CRM/Core/DAO/Cache.php +++ b/CRM/Core/DAO/Cache.php @@ -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"), diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index 7e00823328..b9ff3e9730 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -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"), diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php index fe0574805f..bac95d7507 100644 --- a/CRM/Core/DAO/County.php +++ b/CRM/Core/DAO/County.php @@ -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"), ], diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php index 4986afc728..bdda36d55d 100644 --- a/CRM/Core/DAO/CustomField.php +++ b/CRM/Core/DAO/CustomField.php @@ -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"), ], diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php index bbaf94bb5f..3f25213daa 100644 --- a/CRM/Core/DAO/CustomGroup.php +++ b/CRM/Core/DAO/CustomGroup.php @@ -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"), ], diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index cc1e7818e5..40b9857eab 100644 --- a/CRM/Core/DAO/Dashboard.php +++ b/CRM/Core/DAO/Dashboard.php @@ -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"), ], diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php index ec48418394..826035221b 100644 --- a/CRM/Core/DAO/Discount.php +++ b/CRM/Core/DAO/Discount.php @@ -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"), diff --git a/CRM/Core/DAO/Domain.php b/CRM/Core/DAO/Domain.php index 4e8294f3f0..f83c199479 100644 --- a/CRM/Core/DAO/Domain.php +++ b/CRM/Core/DAO/Domain.php @@ -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"), ], diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php index aaaf43cb5a..767c51f514 100644 --- a/CRM/Core/DAO/Email.php +++ b/CRM/Core/DAO/Email.php @@ -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"), ], diff --git a/CRM/Core/DAO/EntityFile.php b/CRM/Core/DAO/EntityFile.php index c1fa37e592..8891455621 100644 --- a/CRM/Core/DAO/EntityFile.php +++ b/CRM/Core/DAO/EntityFile.php @@ -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"), ], diff --git a/CRM/Core/DAO/EntityTag.php b/CRM/Core/DAO/EntityTag.php index 76e783f6a7..b8f166bd89 100644 --- a/CRM/Core/DAO/EntityTag.php +++ b/CRM/Core/DAO/EntityTag.php @@ -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"), diff --git a/CRM/Core/DAO/File.php b/CRM/Core/DAO/File.php index 4d99910767..5f0677e857 100644 --- a/CRM/Core/DAO/File.php +++ b/CRM/Core/DAO/File.php @@ -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"), ], diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index f302cb90d7..b069791a69 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -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"), ], diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index 63300e27ed..b663617f69 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -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"), diff --git a/CRM/Core/DAO/JobLog.php b/CRM/Core/DAO/JobLog.php index df136a4882..29344ddb76 100644 --- a/CRM/Core/DAO/JobLog.php +++ b/CRM/Core/DAO/JobLog.php @@ -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', ], diff --git a/CRM/Core/DAO/LocBlock.php b/CRM/Core/DAO/LocBlock.php index 0679d8106d..c607c2f6b9 100644 --- a/CRM/Core/DAO/LocBlock.php +++ b/CRM/Core/DAO/LocBlock.php @@ -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"), ], diff --git a/CRM/Core/DAO/Log.php b/CRM/Core/DAO/Log.php index 9bde3709fe..b9cef25ffc 100644 --- a/CRM/Core/DAO/Log.php +++ b/CRM/Core/DAO/Log.php @@ -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"), ], diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index a49bb7d870..3751f51b6b 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -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"), diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php index 403fccfc95..a7b0f438ce 100644 --- a/CRM/Core/DAO/MappingField.php +++ b/CRM/Core/DAO/MappingField.php @@ -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"), ], diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index d554d25fe4..41eefa95bf 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -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"), diff --git a/CRM/Core/DAO/Navigation.php b/CRM/Core/DAO/Navigation.php index 69f0eab62d..c2a28de8b7 100644 --- a/CRM/Core/DAO/Navigation.php +++ b/CRM/Core/DAO/Navigation.php @@ -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"), ], diff --git a/CRM/Core/DAO/Note.php b/CRM/Core/DAO/Note.php index 1669dbcabe..1e16e48051 100644 --- a/CRM/Core/DAO/Note.php +++ b/CRM/Core/DAO/Note.php @@ -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"), diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index 15ae156230..80f6c3b3e6 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -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"), ], diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index b6a1ac9ede..d775f9229d 100644 --- a/CRM/Core/DAO/OptionValue.php +++ b/CRM/Core/DAO/OptionValue.php @@ -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"), ], diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index a3e09a7013..d9e2550e05 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -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"), ], diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index e4bd749d77..92e4946747 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -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"), ], diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php index 452ecd31d4..056ac7387a 100644 --- a/CRM/Core/DAO/Setting.php +++ b/CRM/Core/DAO/Setting.php @@ -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"), ], diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 3e736ba790..014cbe32f9 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -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"), ], diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php index 42c4cc5cfd..f440c79f48 100644 --- a/CRM/Core/DAO/StatusPreference.php +++ b/CRM/Core/DAO/StatusPreference.php @@ -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"), ], diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 0a9f5a8920..76ffee6083 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -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"), diff --git a/CRM/Core/DAO/Timezone.php b/CRM/Core/DAO/Timezone.php index ff158a050a..5849182f24 100644 --- a/CRM/Core/DAO/Timezone.php +++ b/CRM/Core/DAO/Timezone.php @@ -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"), ], diff --git a/CRM/Core/DAO/Translation.php b/CRM/Core/DAO/Translation.php index ea45ee09b7..ec150c97c3 100644 --- a/CRM/Core/DAO/Translation.php +++ b/CRM/Core/DAO/Translation.php @@ -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' => [ diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index 92b4290322..b70e0ab1d2 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -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"), ], diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index 58bf28dc4b..0f744ab9a4 100644 --- a/CRM/Core/DAO/UFGroup.php +++ b/CRM/Core/DAO/UFGroup.php @@ -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"), ], diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php index f4ba1cc2bd..b2cd2efd57 100644 --- a/CRM/Core/DAO/UFJoin.php +++ b/CRM/Core/DAO/UFJoin.php @@ -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"), diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php index e4cf97a975..df7f2ac81d 100644 --- a/CRM/Core/DAO/UFMatch.php +++ b/CRM/Core/DAO/UFMatch.php @@ -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"), ], diff --git a/CRM/Core/DAO/UserJob.php b/CRM/Core/DAO/UserJob.php index effaa34475..100a4010bf 100644 --- a/CRM/Core/DAO/UserJob.php +++ b/CRM/Core/DAO/UserJob.php @@ -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"), ], diff --git a/CRM/Core/DAO/Website.php b/CRM/Core/DAO/Website.php index 075b2b144a..368e0de7e1 100644 --- a/CRM/Core/DAO/Website.php +++ b/CRM/Core/DAO/Website.php @@ -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"), ], diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index 95771f8b6c..06f45883c8 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -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"), ], diff --git a/CRM/Dedupe/DAO/DedupeException.php b/CRM/Dedupe/DAO/DedupeException.php index e18a032650..dbf9debde4 100644 --- a/CRM/Dedupe/DAO/DedupeException.php +++ b/CRM/Dedupe/DAO/DedupeException.php @@ -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"), ], diff --git a/CRM/Dedupe/DAO/DedupeRule.php b/CRM/Dedupe/DAO/DedupeRule.php index 77fd3a6cad..058a895715 100644 --- a/CRM/Dedupe/DAO/DedupeRule.php +++ b/CRM/Dedupe/DAO/DedupeRule.php @@ -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"), ], diff --git a/CRM/Event/Cart/DAO/Cart.php b/CRM/Event/Cart/DAO/Cart.php index 70a4bba883..edbf11df8e 100644 --- a/CRM/Event/Cart/DAO/Cart.php +++ b/CRM/Event/Cart/DAO/Cart.php @@ -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"), ], diff --git a/CRM/Event/Cart/DAO/EventInCart.php b/CRM/Event/Cart/DAO/EventInCart.php index 8792ffd80d..f7ffdc0410 100644 --- a/CRM/Event/Cart/DAO/EventInCart.php +++ b/CRM/Event/Cart/DAO/EventInCart.php @@ -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"), ], diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index 81e431bd08..32de78e332 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -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"), diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index 51d9d34b00..5821da0415 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -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"), diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php index ee20bd110e..68e9a12ec9 100644 --- a/CRM/Event/DAO/ParticipantPayment.php +++ b/CRM/Event/DAO/ParticipantPayment.php @@ -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"), diff --git a/CRM/Financial/DAO/EntityFinancialAccount.php b/CRM/Financial/DAO/EntityFinancialAccount.php index 366c93c61b..30a7a459ff 100644 --- a/CRM/Financial/DAO/EntityFinancialAccount.php +++ b/CRM/Financial/DAO/EntityFinancialAccount.php @@ -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"), diff --git a/CRM/Financial/DAO/EntityFinancialTrxn.php b/CRM/Financial/DAO/EntityFinancialTrxn.php index efeeb81080..06862ba847 100644 --- a/CRM/Financial/DAO/EntityFinancialTrxn.php +++ b/CRM/Financial/DAO/EntityFinancialTrxn.php @@ -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"), ], diff --git a/CRM/Financial/DAO/FinancialAccount.php b/CRM/Financial/DAO/FinancialAccount.php index f2d82c40d6..77259c4b97 100644 --- a/CRM/Financial/DAO/FinancialAccount.php +++ b/CRM/Financial/DAO/FinancialAccount.php @@ -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"), ], diff --git a/CRM/Financial/DAO/FinancialItem.php b/CRM/Financial/DAO/FinancialItem.php index 910aa5ad04..1b37347fc1 100644 --- a/CRM/Financial/DAO/FinancialItem.php +++ b/CRM/Financial/DAO/FinancialItem.php @@ -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', ], ]; diff --git a/CRM/Financial/DAO/FinancialTrxn.php b/CRM/Financial/DAO/FinancialTrxn.php index ebe1a0c621..e104eb35ca 100644 --- a/CRM/Financial/DAO/FinancialTrxn.php +++ b/CRM/Financial/DAO/FinancialTrxn.php @@ -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"), diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php index 3e97f6ab82..bc39174358 100644 --- a/CRM/Financial/DAO/PaymentProcessor.php +++ b/CRM/Financial/DAO/PaymentProcessor.php @@ -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"), ], diff --git a/CRM/Financial/DAO/PaymentToken.php b/CRM/Financial/DAO/PaymentToken.php index 9f4985fff2..46e9568493 100644 --- a/CRM/Financial/DAO/PaymentToken.php +++ b/CRM/Financial/DAO/PaymentToken.php @@ -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"), ], diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index 9eb4bac9d4..a8f1583ed6 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -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' => [ diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index 59c03b0ada..ed56a5d5d1 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -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"), ], diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 9b2d02c82c..1ec69fe84f 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -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"), ], diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php index b050660c1c..46e575e70e 100644 --- a/CRM/Mailing/DAO/MailingAB.php +++ b/CRM/Mailing/DAO/MailingAB.php @@ -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"), ], diff --git a/CRM/Mailing/DAO/MailingGroup.php b/CRM/Mailing/DAO/MailingGroup.php index e6f6f89db8..a65cca122c 100644 --- a/CRM/Mailing/DAO/MailingGroup.php +++ b/CRM/Mailing/DAO/MailingGroup.php @@ -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' => [ diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php index 65e1216d21..da849dd5e4 100644 --- a/CRM/Mailing/DAO/MailingJob.php +++ b/CRM/Mailing/DAO/MailingJob.php @@ -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"), diff --git a/CRM/Mailing/DAO/MailingRecipients.php b/CRM/Mailing/DAO/MailingRecipients.php index 7c24fc5312..f74938af6d 100644 --- a/CRM/Mailing/DAO/MailingRecipients.php +++ b/CRM/Mailing/DAO/MailingRecipients.php @@ -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"), ], diff --git a/CRM/Mailing/DAO/MailingTrackableURL.php b/CRM/Mailing/DAO/MailingTrackableURL.php index 3f5f858cb7..76ad4f4c13 100644 --- a/CRM/Mailing/DAO/MailingTrackableURL.php +++ b/CRM/Mailing/DAO/MailingTrackableURL.php @@ -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"), diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php index 5b37bd51a1..ba0cf1470f 100644 --- a/CRM/Mailing/DAO/Spool.php +++ b/CRM/Mailing/DAO/Spool.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventBounce.php b/CRM/Mailing/Event/DAO/MailingEventBounce.php index c0b9e197a7..563173f245 100644 --- a/CRM/Mailing/Event/DAO/MailingEventBounce.php +++ b/CRM/Mailing/Event/DAO/MailingEventBounce.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventConfirm.php b/CRM/Mailing/Event/DAO/MailingEventConfirm.php index c761649498..a5e7305d2a 100644 --- a/CRM/Mailing/Event/DAO/MailingEventConfirm.php +++ b/CRM/Mailing/Event/DAO/MailingEventConfirm.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventDelivered.php b/CRM/Mailing/Event/DAO/MailingEventDelivered.php index 7831851077..1d3df42232 100644 --- a/CRM/Mailing/Event/DAO/MailingEventDelivered.php +++ b/CRM/Mailing/Event/DAO/MailingEventDelivered.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventForward.php b/CRM/Mailing/Event/DAO/MailingEventForward.php index 00c9dd31a2..873ff1c24f 100644 --- a/CRM/Mailing/Event/DAO/MailingEventForward.php +++ b/CRM/Mailing/Event/DAO/MailingEventForward.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventOpened.php b/CRM/Mailing/Event/DAO/MailingEventOpened.php index c133384cbe..b7d609f48a 100644 --- a/CRM/Mailing/Event/DAO/MailingEventOpened.php +++ b/CRM/Mailing/Event/DAO/MailingEventOpened.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventQueue.php b/CRM/Mailing/Event/DAO/MailingEventQueue.php index d70082836c..b66c42b149 100644 --- a/CRM/Mailing/Event/DAO/MailingEventQueue.php +++ b/CRM/Mailing/Event/DAO/MailingEventQueue.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventReply.php b/CRM/Mailing/Event/DAO/MailingEventReply.php index 4e264070ba..7869d367de 100644 --- a/CRM/Mailing/Event/DAO/MailingEventReply.php +++ b/CRM/Mailing/Event/DAO/MailingEventReply.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventSubscribe.php b/CRM/Mailing/Event/DAO/MailingEventSubscribe.php index a51e8f7ebe..85fb1a63b1 100644 --- a/CRM/Mailing/Event/DAO/MailingEventSubscribe.php +++ b/CRM/Mailing/Event/DAO/MailingEventSubscribe.php @@ -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"), ], diff --git a/CRM/Mailing/Event/DAO/MailingEventTrackableURLOpen.php b/CRM/Mailing/Event/DAO/MailingEventTrackableURLOpen.php index 39def319dd..b983fd0a4f 100644 --- a/CRM/Mailing/Event/DAO/MailingEventTrackableURLOpen.php +++ b/CRM/Mailing/Event/DAO/MailingEventTrackableURLOpen.php @@ -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"), diff --git a/CRM/Mailing/Event/DAO/MailingEventUnsubscribe.php b/CRM/Mailing/Event/DAO/MailingEventUnsubscribe.php index 9d095109cf..a5d00022f1 100644 --- a/CRM/Mailing/Event/DAO/MailingEventUnsubscribe.php +++ b/CRM/Mailing/Event/DAO/MailingEventUnsubscribe.php @@ -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"), ], diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php index bdebee1760..030554f3a6 100644 --- a/CRM/Member/DAO/Membership.php +++ b/CRM/Member/DAO/Membership.php @@ -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', diff --git a/CRM/Member/DAO/MembershipBlock.php b/CRM/Member/DAO/MembershipBlock.php index 494203f639..39a97a6c8a 100644 --- a/CRM/Member/DAO/MembershipBlock.php +++ b/CRM/Member/DAO/MembershipBlock.php @@ -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"), ], diff --git a/CRM/Member/DAO/MembershipLog.php b/CRM/Member/DAO/MembershipLog.php index 788386f6aa..2525d76ab5 100644 --- a/CRM/Member/DAO/MembershipLog.php +++ b/CRM/Member/DAO/MembershipLog.php @@ -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"), ], diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php index 9c74d40efe..21edc4d3bf 100644 --- a/CRM/Member/DAO/MembershipPayment.php +++ b/CRM/Member/DAO/MembershipPayment.php @@ -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"), diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php index 037a78d650..4d1bce9cdb 100644 --- a/CRM/Member/DAO/MembershipType.php +++ b/CRM/Member/DAO/MembershipType.php @@ -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"), ], diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index dcde0a7032..eee6a7bc09 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -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"), diff --git a/CRM/PCP/DAO/PCPBlock.php b/CRM/PCP/DAO/PCPBlock.php index 170eab95f6..ebf84f67ac 100644 --- a/CRM/PCP/DAO/PCPBlock.php +++ b/CRM/PCP/DAO/PCPBlock.php @@ -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"), ], diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php index 757bd5aa66..d658126d7e 100644 --- a/CRM/Pledge/DAO/Pledge.php +++ b/CRM/Pledge/DAO/Pledge.php @@ -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', diff --git a/CRM/Pledge/DAO/PledgeBlock.php b/CRM/Pledge/DAO/PledgeBlock.php index 89096f3311..bf17861d13 100644 --- a/CRM/Pledge/DAO/PledgeBlock.php +++ b/CRM/Pledge/DAO/PledgeBlock.php @@ -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' => [ diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php index 5702cedc07..a290fac0e7 100644 --- a/CRM/Pledge/DAO/PledgePayment.php +++ b/CRM/Pledge/DAO/PledgePayment.php @@ -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"), diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index 947487dbaa..68847eddda 100644 --- a/CRM/Price/DAO/LineItem.php +++ b/CRM/Price/DAO/LineItem.php @@ -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"), diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index ccc233e7c3..4027b35e8d 100644 --- a/CRM/Price/DAO/PriceField.php +++ b/CRM/Price/DAO/PriceField.php @@ -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"), diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index 07e9481d7f..1fbe097523 100644 --- a/CRM/Price/DAO/PriceFieldValue.php +++ b/CRM/Price/DAO/PriceFieldValue.php @@ -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"), diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php index 78294b3e44..ee3735f734 100644 --- a/CRM/Price/DAO/PriceSet.php +++ b/CRM/Price/DAO/PriceSet.php @@ -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"), diff --git a/CRM/Price/DAO/PriceSetEntity.php b/CRM/Price/DAO/PriceSetEntity.php index af7f9f4e98..d5c11dbbb6 100644 --- a/CRM/Price/DAO/PriceSetEntity.php +++ b/CRM/Price/DAO/PriceSetEntity.php @@ -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"), ], diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php index 1b09790813..44b426f9ea 100644 --- a/CRM/Report/DAO/ReportInstance.php +++ b/CRM/Report/DAO/ReportInstance.php @@ -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"), ], diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php index c3af7351b6..3b6c01db97 100644 --- a/CRM/SMS/DAO/Provider.php +++ b/CRM/SMS/DAO/Provider.php @@ -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"), ], -- 2.25.1