From 8ab43c93eec01a236c4f02c58aff55a111e3b216 Mon Sep 17 00:00:00 2001
From: Coleman Watts <coleman@civicrm.org>
Date: Tue, 2 Feb 2021 14:24:51 -0500
Subject: [PATCH] Add "labelField" metadata to entities

This determines which field will be shown when displaying a single record
e.g. when viewing a Contact, show the display_name.
---
 CRM/ACL/DAO/ACL.php                          | 2 +-
 CRM/ACL/DAO/ACLCache.php                     | 2 +-
 CRM/ACL/DAO/EntityRole.php                   | 2 +-
 CRM/Activity/DAO/Activity.php                | 9 ++++++++-
 CRM/Activity/DAO/ActivityContact.php         | 2 +-
 CRM/Batch/DAO/Batch.php                      | 2 +-
 CRM/Batch/DAO/EntityBatch.php                | 2 +-
 CRM/Campaign/DAO/Campaign.php                | 9 ++++++++-
 CRM/Campaign/DAO/CampaignGroup.php           | 2 +-
 CRM/Campaign/DAO/Survey.php                  | 9 ++++++++-
 CRM/Case/DAO/Case.php                        | 9 ++++++++-
 CRM/Case/DAO/CaseActivity.php                | 2 +-
 CRM/Case/DAO/CaseContact.php                 | 2 +-
 CRM/Case/DAO/CaseType.php                    | 2 +-
 CRM/Contact/DAO/ACLContactCache.php          | 2 +-
 CRM/Contact/DAO/Contact.php                  | 9 ++++++++-
 CRM/Contact/DAO/ContactType.php              | 2 +-
 CRM/Contact/DAO/DashboardContact.php         | 2 +-
 CRM/Contact/DAO/Group.php                    | 9 ++++++++-
 CRM/Contact/DAO/GroupContact.php             | 2 +-
 CRM/Contact/DAO/GroupContactCache.php        | 2 +-
 CRM/Contact/DAO/GroupNesting.php             | 2 +-
 CRM/Contact/DAO/GroupOrganization.php        | 2 +-
 CRM/Contact/DAO/Relationship.php             | 2 +-
 CRM/Contact/DAO/RelationshipCache.php        | 2 +-
 CRM/Contact/DAO/RelationshipType.php         | 2 +-
 CRM/Contact/DAO/SavedSearch.php              | 2 +-
 CRM/Contact/DAO/SubscriptionHistory.php      | 2 +-
 CRM/Contribute/DAO/Contribution.php          | 2 +-
 CRM/Contribute/DAO/ContributionPage.php      | 9 ++++++++-
 CRM/Contribute/DAO/ContributionProduct.php   | 2 +-
 CRM/Contribute/DAO/ContributionRecur.php     | 2 +-
 CRM/Contribute/DAO/ContributionSoft.php      | 2 +-
 CRM/Contribute/DAO/Premium.php               | 2 +-
 CRM/Contribute/DAO/PremiumsProduct.php       | 2 +-
 CRM/Contribute/DAO/Product.php               | 9 ++++++++-
 CRM/Contribute/DAO/Widget.php                | 2 +-
 CRM/Core/CodeGen/Specification.php           | 1 +
 CRM/Core/DAO.php                             | 7 +++++++
 CRM/Core/DAO/ActionLog.php                   | 2 +-
 CRM/Core/DAO/ActionMapping.php               | 2 +-
 CRM/Core/DAO/ActionSchedule.php              | 2 +-
 CRM/Core/DAO/Address.php                     | 2 +-
 CRM/Core/DAO/AddressFormat.php               | 2 +-
 CRM/Core/DAO/Cache.php                       | 2 +-
 CRM/Core/DAO/Component.php                   | 2 +-
 CRM/Core/DAO/Country.php                     | 9 ++++++++-
 CRM/Core/DAO/County.php                      | 9 ++++++++-
 CRM/Core/DAO/CustomField.php                 | 9 ++++++++-
 CRM/Core/DAO/CustomGroup.php                 | 9 ++++++++-
 CRM/Core/DAO/Dashboard.php                   | 2 +-
 CRM/Core/DAO/Discount.php                    | 2 +-
 CRM/Core/DAO/Domain.php                      | 2 +-
 CRM/Core/DAO/Email.php                       | 9 ++++++++-
 CRM/Core/DAO/EntityFile.php                  | 2 +-
 CRM/Core/DAO/EntityTag.php                   | 2 +-
 CRM/Core/DAO/Extension.php                   | 2 +-
 CRM/Core/DAO/File.php                        | 2 +-
 CRM/Core/DAO/IM.php                          | 9 ++++++++-
 CRM/Core/DAO/Job.php                         | 2 +-
 CRM/Core/DAO/JobLog.php                      | 2 +-
 CRM/Core/DAO/LocBlock.php                    | 2 +-
 CRM/Core/DAO/LocationType.php                | 2 +-
 CRM/Core/DAO/Log.php                         | 2 +-
 CRM/Core/DAO/MailSettings.php                | 2 +-
 CRM/Core/DAO/Managed.php                     | 2 +-
 CRM/Core/DAO/Mapping.php                     | 2 +-
 CRM/Core/DAO/MappingField.php                | 2 +-
 CRM/Core/DAO/Menu.php                        | 2 +-
 CRM/Core/DAO/MessageTemplate.php             | 2 +-
 CRM/Core/DAO/Navigation.php                  | 9 ++++++++-
 CRM/Core/DAO/Note.php                        | 2 +-
 CRM/Core/DAO/OpenID.php                      | 2 +-
 CRM/Core/DAO/OptionGroup.php                 | 2 +-
 CRM/Core/DAO/OptionValue.php                 | 2 +-
 CRM/Core/DAO/Phone.php                       | 9 ++++++++-
 CRM/Core/DAO/PreferencesDate.php             | 2 +-
 CRM/Core/DAO/PrevNextCache.php               | 2 +-
 CRM/Core/DAO/PrintLabel.php                  | 2 +-
 CRM/Core/DAO/RecurringEntity.php             | 2 +-
 CRM/Core/DAO/Setting.php                     | 2 +-
 CRM/Core/DAO/StateProvince.php               | 9 ++++++++-
 CRM/Core/DAO/StatusPreference.php            | 2 +-
 CRM/Core/DAO/SystemLog.php                   | 2 +-
 CRM/Core/DAO/Tag.php                         | 9 ++++++++-
 CRM/Core/DAO/Timezone.php                    | 2 +-
 CRM/Core/DAO/UFField.php                     | 2 +-
 CRM/Core/DAO/UFGroup.php                     | 2 +-
 CRM/Core/DAO/UFJoin.php                      | 2 +-
 CRM/Core/DAO/UFMatch.php                     | 2 +-
 CRM/Core/DAO/Website.php                     | 9 ++++++++-
 CRM/Core/DAO/WordReplacement.php             | 2 +-
 CRM/Core/DAO/Worldregion.php                 | 2 +-
 CRM/Cxn/DAO/Cxn.php                          | 2 +-
 CRM/Dedupe/DAO/Exception.php                 | 2 +-
 CRM/Dedupe/DAO/Rule.php                      | 2 +-
 CRM/Dedupe/DAO/RuleGroup.php                 | 2 +-
 CRM/Event/Cart/DAO/Cart.php                  | 2 +-
 CRM/Event/Cart/DAO/EventInCart.php           | 2 +-
 CRM/Event/DAO/Event.php                      | 9 ++++++++-
 CRM/Event/DAO/Participant.php                | 2 +-
 CRM/Event/DAO/ParticipantPayment.php         | 2 +-
 CRM/Event/DAO/ParticipantStatusType.php      | 2 +-
 CRM/Financial/DAO/Currency.php               | 2 +-
 CRM/Financial/DAO/EntityFinancialAccount.php | 2 +-
 CRM/Financial/DAO/EntityFinancialTrxn.php    | 2 +-
 CRM/Financial/DAO/FinancialAccount.php       | 2 +-
 CRM/Financial/DAO/FinancialItem.php          | 2 +-
 CRM/Financial/DAO/FinancialTrxn.php          | 2 +-
 CRM/Financial/DAO/FinancialType.php          | 9 ++++++++-
 CRM/Financial/DAO/PaymentProcessor.php       | 2 +-
 CRM/Financial/DAO/PaymentProcessorType.php   | 2 +-
 CRM/Financial/DAO/PaymentToken.php           | 2 +-
 CRM/Friend/DAO/Friend.php                    | 2 +-
 CRM/Grant/DAO/Grant.php                      | 2 +-
 CRM/Mailing/DAO/BouncePattern.php            | 2 +-
 CRM/Mailing/DAO/BounceType.php               | 2 +-
 CRM/Mailing/DAO/Mailing.php                  | 2 +-
 CRM/Mailing/DAO/MailingAB.php                | 2 +-
 CRM/Mailing/DAO/MailingComponent.php         | 2 +-
 CRM/Mailing/DAO/MailingGroup.php             | 2 +-
 CRM/Mailing/DAO/MailingJob.php               | 2 +-
 CRM/Mailing/DAO/Recipients.php               | 2 +-
 CRM/Mailing/DAO/Spool.php                    | 2 +-
 CRM/Mailing/DAO/TrackableURL.php             | 2 +-
 CRM/Mailing/Event/DAO/Bounce.php             | 2 +-
 CRM/Mailing/Event/DAO/Confirm.php            | 2 +-
 CRM/Mailing/Event/DAO/Delivered.php          | 2 +-
 CRM/Mailing/Event/DAO/Forward.php            | 2 +-
 CRM/Mailing/Event/DAO/Opened.php             | 2 +-
 CRM/Mailing/Event/DAO/Queue.php              | 2 +-
 CRM/Mailing/Event/DAO/Reply.php              | 2 +-
 CRM/Mailing/Event/DAO/Subscribe.php          | 2 +-
 CRM/Mailing/Event/DAO/TrackableURLOpen.php   | 2 +-
 CRM/Mailing/Event/DAO/Unsubscribe.php        | 2 +-
 CRM/Member/DAO/Membership.php                | 2 +-
 CRM/Member/DAO/MembershipBlock.php           | 2 +-
 CRM/Member/DAO/MembershipLog.php             | 2 +-
 CRM/Member/DAO/MembershipPayment.php         | 2 +-
 CRM/Member/DAO/MembershipStatus.php          | 9 ++++++++-
 CRM/Member/DAO/MembershipType.php            | 9 ++++++++-
 CRM/PCP/DAO/PCP.php                          | 2 +-
 CRM/PCP/DAO/PCPBlock.php                     | 2 +-
 CRM/Pledge/DAO/Pledge.php                    | 2 +-
 CRM/Pledge/DAO/PledgeBlock.php               | 2 +-
 CRM/Pledge/DAO/PledgePayment.php             | 2 +-
 CRM/Price/DAO/LineItem.php                   | 2 +-
 CRM/Price/DAO/PriceField.php                 | 2 +-
 CRM/Price/DAO/PriceFieldValue.php            | 2 +-
 CRM/Price/DAO/PriceSet.php                   | 2 +-
 CRM/Price/DAO/PriceSetEntity.php             | 2 +-
 CRM/Queue/DAO/QueueItem.php                  | 2 +-
 CRM/Report/DAO/ReportInstance.php            | 2 +-
 CRM/SMS/DAO/Provider.php                     | 2 +-
 Civi/Api4/Entity.php                         | 4 ++++
 Civi/Api4/Generic/AbstractEntity.php         | 1 +
 xml/schema/Activity/Activity.xml             | 1 +
 xml/schema/Campaign/Campaign.xml             | 1 +
 xml/schema/Campaign/Survey.xml               | 1 +
 xml/schema/Case/Case.xml                     | 1 +
 xml/schema/Contact/Contact.xml               | 1 +
 xml/schema/Contact/Group.xml                 | 1 +
 xml/schema/Contribute/ContributionPage.xml   | 1 +
 xml/schema/Contribute/Product.xml            | 1 +
 xml/schema/Core/Country.xml                  | 1 +
 xml/schema/Core/County.xml                   | 1 +
 xml/schema/Core/CustomField.xml              | 1 +
 xml/schema/Core/CustomGroup.xml              | 1 +
 xml/schema/Core/Email.xml                    | 1 +
 xml/schema/Core/IM.xml                       | 1 +
 xml/schema/Core/Navigation.xml               | 1 +
 xml/schema/Core/Phone.xml                    | 1 +
 xml/schema/Core/StateProvince.xml            | 1 +
 xml/schema/Core/Tag.xml                      | 1 +
 xml/schema/Core/Website.xml                  | 1 +
 xml/schema/Event/Event.xml                   | 1 +
 xml/schema/Financial/FinancialType.xml       | 1 +
 xml/schema/Member/MembershipStatus.xml       | 1 +
 xml/schema/Member/MembershipType.xml         | 1 +
 xml/templates/dao.tpl                        | 9 +++++++++
 180 files changed, 358 insertions(+), 152 deletions(-)

diff --git a/CRM/ACL/DAO/ACL.php b/CRM/ACL/DAO/ACL.php
index a63ba76a049..2bb1a99803e 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:b4b1db29de0700887b7875f82d079c10)
+ * (GenCodeChecksum:945c6124726a8a24c2b1915f892e5d7f)
  */
 
 /**
diff --git a/CRM/ACL/DAO/ACLCache.php b/CRM/ACL/DAO/ACLCache.php
index ae394a532b1..181af8cdc0f 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:9676dd799030fb9b56b490595dd3a847)
+ * (GenCodeChecksum:d578da6a914d1f86daeff26e50653fc4)
  */
 
 /**
diff --git a/CRM/ACL/DAO/EntityRole.php b/CRM/ACL/DAO/EntityRole.php
index 043e1f673f1..3701d04d1e7 100644
--- a/CRM/ACL/DAO/EntityRole.php
+++ b/CRM/ACL/DAO/EntityRole.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/EntityRole.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ec91adfcc1d76814541811d4b97e45b2)
+ * (GenCodeChecksum:012d2481ba1ccdef7d19a17eae876597)
  */
 
 /**
diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php
index 7a11bf5990a..6d764364cbc 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:cabeb52f5da37045929bb3e0b7748992)
+ * (GenCodeChecksum:20d5b91c29b14f4df12aabfc07c58e94)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-tasks';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'subject';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Activity/DAO/ActivityContact.php b/CRM/Activity/DAO/ActivityContact.php
index c789e4f0ed7..c80dbbf1b98 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:1263921d2a6832e26c5a7e34c684e35b)
+ * (GenCodeChecksum:ea2c719e3d50906c6e8695743b39f3d1)
  */
 
 /**
diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php
index 4b4925ef6d3..8c9421d887a 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:717006044703500afc7d4f45f63194df)
+ * (GenCodeChecksum:d8e02b922579edb2fc29f4717ba25699)
  */
 
 /**
diff --git a/CRM/Batch/DAO/EntityBatch.php b/CRM/Batch/DAO/EntityBatch.php
index e496cad7cd4..0a080da4b51 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:61cb70a15ffc587cc8476204cb16353f)
+ * (GenCodeChecksum:9d04febc575fa821cc186aecfbce8965)
  */
 
 /**
diff --git a/CRM/Campaign/DAO/Campaign.php b/CRM/Campaign/DAO/Campaign.php
index 69092b29600..5e2534cb4e7 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:4de7a73b3f3921098ac11b6d5acee061)
+ * (GenCodeChecksum:3b1b6ca6e815c02f3db8ccfe2a2ebb49)
  */
 
 /**
@@ -31,6 +31,13 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-bullhorn';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php
index a04ca5e611b..a448bd16fb0 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:9e8df6e6e1df93fb351b51bcda21c176)
+ * (GenCodeChecksum:88f73bc59595d75977b66fe76466a22c)
  */
 
 /**
diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php
index 479411f1bec..aa303547eef 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:b324203328e0c8d3dc10a4346a4db6f3)
+ * (GenCodeChecksum:03edb270b63048ec3aa9f36667548961)
  */
 
 /**
@@ -31,6 +31,13 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-clipboard';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php
index aa52e8d4547..483f25ac88a 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:8b354d7c2a0e40d82d27cbfd08776c15)
+ * (GenCodeChecksum:25b62fb26ceaecec52854fad5c2ef1f5)
  */
 
 /**
@@ -31,6 +31,13 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-folder-open';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'subject';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Case/DAO/CaseActivity.php b/CRM/Case/DAO/CaseActivity.php
index 89baec8d646..96baecd3fb9 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:5fc2509491a88a1bd2d8ce808f99a00e)
+ * (GenCodeChecksum:86671184c99ebfb57f4eb57c2f07b81b)
  */
 
 /**
diff --git a/CRM/Case/DAO/CaseContact.php b/CRM/Case/DAO/CaseContact.php
index 24d41dc53e6..7adb2d563ec 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:8ccb7c478dfa4eb1b3b022eeabc71b79)
+ * (GenCodeChecksum:183cc7024ea45a45b22d912a813ad571)
  */
 
 /**
diff --git a/CRM/Case/DAO/CaseType.php b/CRM/Case/DAO/CaseType.php
index 4dc5e69aae4..299d708a7ee 100644
--- a/CRM/Case/DAO/CaseType.php
+++ b/CRM/Case/DAO/CaseType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9151b8db1ff873f31d574b5cdec128ac)
+ * (GenCodeChecksum:6a52ae7afff416692c421e61c34645d6)
  */
 
 /**
diff --git a/CRM/Contact/DAO/ACLContactCache.php b/CRM/Contact/DAO/ACLContactCache.php
index ce7d7b95767..c298e5f8cac 100644
--- a/CRM/Contact/DAO/ACLContactCache.php
+++ b/CRM/Contact/DAO/ACLContactCache.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/ACLContactCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:26fea9c61af7afdc2f3401213e0eab2b)
+ * (GenCodeChecksum:0344ff6318aa46a5eb71653f0af1b03a)
  */
 
 /**
diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php
index b1661fd458e..bf067a163fb 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:c8000203c94da02a4b215ad1a8f7ed89)
+ * (GenCodeChecksum:e34bde9c7a6fcbfdc33cd9cbc305f1fb)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-address-book-o';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'display_name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Contact/DAO/ContactType.php b/CRM/Contact/DAO/ContactType.php
index 85184131fda..a6fe11a8ebc 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:dfe2f3758a8cf1ad9bd23dfb9e2de671)
+ * (GenCodeChecksum:7b959770a932c13bc00ff85cbecc045e)
  */
 
 /**
diff --git a/CRM/Contact/DAO/DashboardContact.php b/CRM/Contact/DAO/DashboardContact.php
index 6cc3cc53410..7ff59448992 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:d65c9f2feca6cd296a047c2f4e2a862c)
+ * (GenCodeChecksum:583e1de6afb140898039f277bd3475be)
  */
 
 /**
diff --git a/CRM/Contact/DAO/Group.php b/CRM/Contact/DAO/Group.php
index 417c467eb02..bdb88dc88ce 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:92977cbc500e10cef9399e66c0e63597)
+ * (GenCodeChecksum:ff18afbee9efca3c4e91c5f67fb10622)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-users';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php
index 5f6dde1bde7..a7213622736 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:5c26ac19a56e589da1399e755469229b)
+ * (GenCodeChecksum:56b483aa4bf347ec6193ad05c1ab3d0a)
  */
 
 /**
diff --git a/CRM/Contact/DAO/GroupContactCache.php b/CRM/Contact/DAO/GroupContactCache.php
index f8314a24f4f..92067ada626 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:db2873674d73776ad753a88082ea072a)
+ * (GenCodeChecksum:5178c3ecf2bb087a51fc88c339ac9172)
  */
 
 /**
diff --git a/CRM/Contact/DAO/GroupNesting.php b/CRM/Contact/DAO/GroupNesting.php
index d61c74bc684..c4be7696c30 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:0e7931bbaab17bdf66a41f8b912f92f6)
+ * (GenCodeChecksum:fcc4ba34c2f709a89170d80de223c53d)
  */
 
 /**
diff --git a/CRM/Contact/DAO/GroupOrganization.php b/CRM/Contact/DAO/GroupOrganization.php
index 2461b6cb60e..dc4a43cce75 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:a16da367f856704d5432044055ed5d16)
+ * (GenCodeChecksum:10c5435437b8d3b3cbbca748fc008edd)
  */
 
 /**
diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php
index 6312c405541..549a6af751d 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:5c1cfe38206fb7c465befe517bf6f23d)
+ * (GenCodeChecksum:e1fb735aa0cc3878713b6a3c2ca9c428)
  */
 
 /**
diff --git a/CRM/Contact/DAO/RelationshipCache.php b/CRM/Contact/DAO/RelationshipCache.php
index c888435bfd5..bd408452256 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:ec899f1ccb7f617701d7108dc4282691)
+ * (GenCodeChecksum:b35c483041c2cf38afed94446977fa1e)
  */
 
 /**
diff --git a/CRM/Contact/DAO/RelationshipType.php b/CRM/Contact/DAO/RelationshipType.php
index 14df1f92ebb..63b6de66128 100644
--- a/CRM/Contact/DAO/RelationshipType.php
+++ b/CRM/Contact/DAO/RelationshipType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a3e3c18c34421b3dbcffb17bd313aa17)
+ * (GenCodeChecksum:baf94ca6a0ab322520a4ef80dc466b3a)
  */
 
 /**
diff --git a/CRM/Contact/DAO/SavedSearch.php b/CRM/Contact/DAO/SavedSearch.php
index 1f81f53c8b1..c6f4dac6298 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:73251f9c4af0127e2e9fc2770f21869d)
+ * (GenCodeChecksum:60133924e9299405ccd3ebf987663476)
  */
 
 /**
diff --git a/CRM/Contact/DAO/SubscriptionHistory.php b/CRM/Contact/DAO/SubscriptionHistory.php
index a8e7de48a6a..b6f1f8c5a81 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:3557b2bfd9b5364ea356c17a7237fd5e)
+ * (GenCodeChecksum:a610d2218f91399a58b1fb8e4f90441d)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php
index b47d34d2e1b..e9936e8cf2e 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:a24c14ae34bb8c68b8f0348b946c18b9)
+ * (GenCodeChecksum:11b9f8bc6198e4338be2406de58b6723)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php
index 75a82ba3f49..e38ebbf9fe1 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:1fc0665cc8320aec4576a39e1491d57a)
+ * (GenCodeChecksum:958ef76562a951e9f80b8e6f16afd6ee)
  */
 
 /**
@@ -24,6 +24,13 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_contribution_page';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php
index ef635d760fe..0c9eb3373b9 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:f1269124a9b0ee2a9482aea7d0ee221c)
+ * (GenCodeChecksum:0e560708ae82cbbea43d50872921f623)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php
index 55e632c1a94..9bed9fd903a 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:c080fbdfdb5b780a36f5a48e5a88eaae)
+ * (GenCodeChecksum:5e2fa2241a3f8c014352d897be31fad1)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php
index ce611201dc5..1bdde526c9d 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:fcbdcb4461e427de7ecb5f1759538907)
+ * (GenCodeChecksum:13ea3cb5cb23675acf2be4667deb1e45)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/Premium.php b/CRM/Contribute/DAO/Premium.php
index 0564f5c1375..1b698b86b46 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:44100b596ee94445f953e783f37cdfba)
+ * (GenCodeChecksum:1b739de8bbefea885f3835009c2346a9)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/PremiumsProduct.php b/CRM/Contribute/DAO/PremiumsProduct.php
index d5980d098b3..e945d587978 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:10a4fa226e76cf7278ae9e4790c237aa)
+ * (GenCodeChecksum:e0f6b18be4eda69e76c5e2242893e133)
  */
 
 /**
diff --git a/CRM/Contribute/DAO/Product.php b/CRM/Contribute/DAO/Product.php
index 4373dbe3d76..ae96a78011f 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:45a3c80396259fbc6da8cbecc0ba652d)
+ * (GenCodeChecksum:e7074b0ae199fa07a18e42960549beb3)
  */
 
 /**
@@ -24,6 +24,13 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_product';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php
index d852ced939a..295d32c8bcf 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:b98e1da73e0723e617a9dae64a8e8dad)
+ * (GenCodeChecksum:9331ebf30ff0efe3e853ecab8c27efb2)
  */
 
 /**
diff --git a/CRM/Core/CodeGen/Specification.php b/CRM/Core/CodeGen/Specification.php
index 269cb57813a..015b56560c4 100644
--- a/CRM/Core/CodeGen/Specification.php
+++ b/CRM/Core/CodeGen/Specification.php
@@ -215,6 +215,7 @@ class CRM_Core_CodeGen_Specification {
       'title' => $tableXML->title ?? $titleFromClass,
       'titlePlural' => $tableXML->titlePlural ?? CRM_Utils_String::pluralize($tableXML->title ?? $titleFromClass),
       'icon' => $tableXML->icon ?? NULL,
+      'labelField' => $tableXML->labelField ?? NULL,
       'add' => $tableXML->add ?? NULL,
       'component' => $tableXML->component ?? NULL,
       'paths' => (array) ($tableXML->paths ?? []),
diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php
index 4fb383276f0..81b02ceefbc 100644
--- a/CRM/Core/DAO.php
+++ b/CRM/Core/DAO.php
@@ -52,6 +52,13 @@ class CRM_Core_DAO extends DB_DataObject {
    */
   public static $_icon = NULL;
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = NULL;
+
   /**
    * @var array
    * @deprecated
diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php
index 96d4bfa19a7..91f36de89b3 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:5e54867f6cec000d7f219c82a1c081d3)
+ * (GenCodeChecksum:4127ee42bdd435f58118662f65c4fe84)
  */
 
 /**
diff --git a/CRM/Core/DAO/ActionMapping.php b/CRM/Core/DAO/ActionMapping.php
index 2bdd4fa93d5..a2b96a8e043 100644
--- a/CRM/Core/DAO/ActionMapping.php
+++ b/CRM/Core/DAO/ActionMapping.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/ActionMapping.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:786c067af45c5d1979519a8326665453)
+ * (GenCodeChecksum:c52c12ce8a0134ab553e2cbe7a7ad7f7)
  */
 
 /**
diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php
index fdb2ebb4665..f7b4141748c 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:df905816967f9d1ec039390d6e639672)
+ * (GenCodeChecksum:942d4be76392811af80f2ba8c92941e6)
  */
 
 /**
diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php
index 8b00d71af76..0ff76ccd8f8 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:44eb25ddfd0e9d87e213e2f80f80233d)
+ * (GenCodeChecksum:9fc4f7e6d90b100aec8e543d18b3064c)
  */
 
 /**
diff --git a/CRM/Core/DAO/AddressFormat.php b/CRM/Core/DAO/AddressFormat.php
index 374ca1449bc..45c3c20c041 100644
--- a/CRM/Core/DAO/AddressFormat.php
+++ b/CRM/Core/DAO/AddressFormat.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/AddressFormat.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:47ce2c9d196b195fda0a60eaac02f5d1)
+ * (GenCodeChecksum:4920351f2ab4a3e6d7a51a6831906782)
  */
 
 /**
diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php
index beafabc7c06..4d530b60441 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:6b4eec63c83fffde053a8259221d0bfe)
+ * (GenCodeChecksum:4c6850e83ad62f89ca0768f5f1f70beb)
  */
 
 /**
diff --git a/CRM/Core/DAO/Component.php b/CRM/Core/DAO/Component.php
index 0c9216f26d7..525e5aaae4a 100644
--- a/CRM/Core/DAO/Component.php
+++ b/CRM/Core/DAO/Component.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Component.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3b686ef7dde6f66dfe5eb708e667dcc7)
+ * (GenCodeChecksum:15d3ddeacb4afb61c83b6b89678d1023)
  */
 
 /**
diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php
index f382ac3ea10..238ae8ea208 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:a2520444699acbd151d715ccadc6e2b7)
+ * (GenCodeChecksum:e76c4050e0ec0ae3263c542574214f2d)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_country';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php
index 3bfb53cd73e..dc9aebe2806 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:5626c0a01aa4e5da8dedc064ce3a9dff)
+ * (GenCodeChecksum:483d29dbf44ee6e0805f062f90a1d4e9)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_county';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php
index e02729998ac..92d512af447 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:58c67e6b3ec035823fb7553abb962ab9)
+ * (GenCodeChecksum:3e3cc05b51da1e0e51ac5dcbbedde392)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_custom_field';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'label';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php
index 58742e8fd47..b96a2b39ab8 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:807040c22af3159cb198becb183444bc)
+ * (GenCodeChecksum:325f7ef398cd08e7576f634d9923f129)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_custom_group';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php
index 2e31d42d4d0..c249812b33f 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:96e683f4bec8fff387930109c2f5ea41)
+ * (GenCodeChecksum:da79552cec455b6d3347a9eab6fbd5ba)
  */
 
 /**
diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php
index 05377bc2bff..f38bfd5f088 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:ccb85ff70ce8a536ac4a941628455d8d)
+ * (GenCodeChecksum:21fd136286714890f83997ed552ff7a9)
  */
 
 /**
diff --git a/CRM/Core/DAO/Domain.php b/CRM/Core/DAO/Domain.php
index f178a01687f..ca1676aabc0 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:6a8de20676ad3eeaca16ea3059958a4e)
+ * (GenCodeChecksum:e0f95fc75ca145449570ee01ad603db6)
  */
 
 /**
diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php
index 75ef40b6bab..0ce302194da 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:032cf9c0a45f5d15baaf7a9087741569)
+ * (GenCodeChecksum:3347cb591dc1868f493d8aa7bd7ab546)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-envelope-o';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'email';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/EntityFile.php b/CRM/Core/DAO/EntityFile.php
index 22279799284..a82b9dcb89e 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:8d4673d56dc80b50b0acdd5186a19068)
+ * (GenCodeChecksum:f69f69d9bdd1339e4128c289e4c66bac)
  */
 
 /**
diff --git a/CRM/Core/DAO/EntityTag.php b/CRM/Core/DAO/EntityTag.php
index 5a4e3588565..b063c0138ed 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:f02ad487f101cb549da790954fbaa7a4)
+ * (GenCodeChecksum:87cdf7b752999de6a992ee32e0118d9e)
  */
 
 /**
diff --git a/CRM/Core/DAO/Extension.php b/CRM/Core/DAO/Extension.php
index 9b2ca48c88f..8f866056665 100644
--- a/CRM/Core/DAO/Extension.php
+++ b/CRM/Core/DAO/Extension.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Extension.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c85a50145f3c9647e6fb46328034090e)
+ * (GenCodeChecksum:5dd2ae0de7d091c437acac61990bd25a)
  */
 
 /**
diff --git a/CRM/Core/DAO/File.php b/CRM/Core/DAO/File.php
index 8598cfc242f..eaf90e006ed 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:d47b8b85ee8790c3da0216b40c2dc657)
+ * (GenCodeChecksum:48da22a0ac1cbc4061d3f47916c4828b)
  */
 
 /**
diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php
index b1d6e63df19..b1c6bb82945 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:d44807afb48eb3aa89bdae6db574f89e)
+ * (GenCodeChecksum:2e9345b51bb73b147d2776508b2592c9)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-comments-o';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php
index c24f6dcad1e..76ee644c964 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:434388c3fa5b5f67932dd71f5d64a031)
+ * (GenCodeChecksum:8e610840383d1d67376a442507b7de78)
  */
 
 /**
diff --git a/CRM/Core/DAO/JobLog.php b/CRM/Core/DAO/JobLog.php
index 314634b3008..591bbbf70e5 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:03cf51e361b98d8ed31dcbd86eda2722)
+ * (GenCodeChecksum:030669116dbbcb2ac95ace538ccef9e2)
  */
 
 /**
diff --git a/CRM/Core/DAO/LocBlock.php b/CRM/Core/DAO/LocBlock.php
index 9e43a2a2417..912488b5b13 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:86653150176ca5b8f4bb80b8dc581010)
+ * (GenCodeChecksum:077ee3453e455a1e09cbe1b030756b9a)
  */
 
 /**
diff --git a/CRM/Core/DAO/LocationType.php b/CRM/Core/DAO/LocationType.php
index 561ea83175c..863a809bd7d 100644
--- a/CRM/Core/DAO/LocationType.php
+++ b/CRM/Core/DAO/LocationType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocationType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0aac55ebb9932e5ab19fcf2e6eca7dd0)
+ * (GenCodeChecksum:0327a8f5a6113259101b762b138471ca)
  */
 
 /**
diff --git a/CRM/Core/DAO/Log.php b/CRM/Core/DAO/Log.php
index c648403e39a..748e1caa214 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:816b07245cf23f330f371b32bc278d17)
+ * (GenCodeChecksum:7f8848b98de2f566ee305bc883450484)
  */
 
 /**
diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php
index fd35409ecdc..31ca9658a87 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:a362c7cd24732b55a96cd4e526d29102)
+ * (GenCodeChecksum:a16e81997bf4b6cb25dfafd32c10a49a)
  */
 
 /**
diff --git a/CRM/Core/DAO/Managed.php b/CRM/Core/DAO/Managed.php
index 55aae70513f..c9153576868 100644
--- a/CRM/Core/DAO/Managed.php
+++ b/CRM/Core/DAO/Managed.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Managed.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a6c528f54d10bee8fbc3b12c1bafd44c)
+ * (GenCodeChecksum:d9e22fa6b1d9a18b552e5cfba7d1be90)
  */
 
 /**
diff --git a/CRM/Core/DAO/Mapping.php b/CRM/Core/DAO/Mapping.php
index caf70fe97d4..954ce5915c1 100644
--- a/CRM/Core/DAO/Mapping.php
+++ b/CRM/Core/DAO/Mapping.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Mapping.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:50a6b7f051df6e61bf9e0b9b930dc861)
+ * (GenCodeChecksum:c7b4a3dcfbac7edda9d0573807cab642)
  */
 
 /**
diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php
index d32d628cad2..095371c4b3f 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:b61d71dabcb618c14e3e8d7985b324de)
+ * (GenCodeChecksum:3712a8e412a011a13e2898d0f151b264)
  */
 
 /**
diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php
index abc4794b7d5..d926508b93e 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:57fa30940edf98c8e957dd1f33df3f51)
+ * (GenCodeChecksum:6391b63b227b5de3c68bbf951b2e3add)
  */
 
 /**
diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php
index b374ba633ee..b4b6f2fd03e 100644
--- a/CRM/Core/DAO/MessageTemplate.php
+++ b/CRM/Core/DAO/MessageTemplate.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MessageTemplate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8bdd2857d4229fc76ced7a2153574864)
+ * (GenCodeChecksum:d8ec6425eecc359e3b504dffcdd71456)
  */
 
 /**
diff --git a/CRM/Core/DAO/Navigation.php b/CRM/Core/DAO/Navigation.php
index a01fe2ad647..b3e2f9737a7 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:ca49dd9232dd72c6e1236488837a30cb)
+ * (GenCodeChecksum:2d490646a2eb99c3f4cafa111c1ec43b)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_navigation';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'label';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/Note.php b/CRM/Core/DAO/Note.php
index 0cac3ede169..b243cde7ab3 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:b623a27bc1f57db04764a14ce6a3f113)
+ * (GenCodeChecksum:9e73096c6f34086fd42e8098649c7abc)
  */
 
 /**
diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php
index d699f9cab4e..ff4b9c87b61 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:47984d6d7242a00042bf664e5fff0600)
+ * (GenCodeChecksum:cb1ead5da887d91854185af42e87d223)
  */
 
 /**
diff --git a/CRM/Core/DAO/OptionGroup.php b/CRM/Core/DAO/OptionGroup.php
index 6ed7e5b6b71..cbc52386f14 100644
--- a/CRM/Core/DAO/OptionGroup.php
+++ b/CRM/Core/DAO/OptionGroup.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0892af5a47aecaeaa04a82c6f9875348)
+ * (GenCodeChecksum:3d9ef1e2ede76e804564e12cb8c2e70e)
  */
 
 /**
diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php
index 6d517cba38c..762f8338e24 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:613a9cc4fed472d40f1d49cf456a9711)
+ * (GenCodeChecksum:976770c043870752548e424a09ee7190)
  */
 
 /**
diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php
index 7c6afe22e32..b181d282104 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:600322e85619a002b34c9faf0f02e5c8)
+ * (GenCodeChecksum:751f23f392f8fe789e580096ae7522b7)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-phone';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'phone';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/PreferencesDate.php b/CRM/Core/DAO/PreferencesDate.php
index cafec81099b..0d24df1506e 100644
--- a/CRM/Core/DAO/PreferencesDate.php
+++ b/CRM/Core/DAO/PreferencesDate.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PreferencesDate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a0d91310a76fe98662806ef3104d8f30)
+ * (GenCodeChecksum:65c1286e931e9eb728cc0603eb36f5f0)
  */
 
 /**
diff --git a/CRM/Core/DAO/PrevNextCache.php b/CRM/Core/DAO/PrevNextCache.php
index a1ff559fd5a..20321b93c16 100644
--- a/CRM/Core/DAO/PrevNextCache.php
+++ b/CRM/Core/DAO/PrevNextCache.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/PrevNextCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:eb88786d7c15dbc509450465b4fdd6a2)
+ * (GenCodeChecksum:b2e4e9de3ff3cf7e4cd2cc163a330186)
  */
 
 /**
diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php
index 516171a9696..696b286e3aa 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:39e91965d2ee2599f3eae8ab3b4cc7f8)
+ * (GenCodeChecksum:47b9dfd5441035d4594e8e9fa56147c0)
  */
 
 /**
diff --git a/CRM/Core/DAO/RecurringEntity.php b/CRM/Core/DAO/RecurringEntity.php
index 994edba70e3..6c0c82624aa 100644
--- a/CRM/Core/DAO/RecurringEntity.php
+++ b/CRM/Core/DAO/RecurringEntity.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/RecurringEntity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9cb2098de9f52e400a1083f996431878)
+ * (GenCodeChecksum:e220816a83c51a7e8045aae07d573823)
  */
 
 /**
diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php
index 6945563cfdd..c6e97170f69 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:2eb3a69876a76a1aca598e6bfb7031a4)
+ * (GenCodeChecksum:5322f74fd868a3e1116a2aec225c5d5d)
  */
 
 /**
diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php
index 777af4481b0..5647e46ae05 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:92fa37e3fe2a55ec5b0efc3fc220ac4f)
+ * (GenCodeChecksum:780de8ad067e9c67146dc908127aa5f2)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_state_province';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php
index da0a13644ec..4238fac6b29 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:bb2fbd63b6758475161446097d35804c)
+ * (GenCodeChecksum:c7707a17613329c62550361da0678903)
  */
 
 /**
diff --git a/CRM/Core/DAO/SystemLog.php b/CRM/Core/DAO/SystemLog.php
index c92cbcea6bd..0ac0aabc33e 100644
--- a/CRM/Core/DAO/SystemLog.php
+++ b/CRM/Core/DAO/SystemLog.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/SystemLog.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e302c6097bd6aff575d7067c771eaef0)
+ * (GenCodeChecksum:cfa50c5985279e7135c046e0aeccb662)
  */
 
 /**
diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php
index c76428bc8e5..050ac61d1d7 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:1de963194e3e392448445fac3eac82c8)
+ * (GenCodeChecksum:21c288ada959d2bac5822591622e838f)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-tag';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/Timezone.php b/CRM/Core/DAO/Timezone.php
index bc16f905b94..f2648404dcd 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:1a876a8f56414a6d8094669bb3ce16f8)
+ * (GenCodeChecksum:4f08daa9358efcad25c3405495c619f7)
  */
 
 /**
diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php
index d95e7cbd62b..0c51d6958f6 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:1c306561fedcaf68fb7d1c78756edf2e)
+ * (GenCodeChecksum:957f3b024ca6a7560b418aee01389aec)
  */
 
 /**
diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php
index 06ef6672c11..df4423c6951 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:94b47a495b66ddc579bd2c3559e8af7d)
+ * (GenCodeChecksum:87b09ca770a4ef4a9eeec0403a7d774f)
  */
 
 /**
diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php
index 6fdd9f50968..e6b35adc5bc 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:e5418263459cb127f21a1eafeba89e4c)
+ * (GenCodeChecksum:c0ed1de85eee511aab82c44d39549aa4)
  */
 
 /**
diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php
index 3a72a545ef9..ee2b034c13a 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:b10c23e083b100bb39e93f9fd8b1cf86)
+ * (GenCodeChecksum:c9c6016d9accdae2e80e856574c0fd5a)
  */
 
 /**
diff --git a/CRM/Core/DAO/Website.php b/CRM/Core/DAO/Website.php
index 50ffba632eb..6c12cf28798 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:f5b6bc86206d0baccab8691ee1ae634e)
+ * (GenCodeChecksum:9176466bab7c06d5ace2080bfcfe51d6)
  */
 
 /**
@@ -30,6 +30,13 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-desktop';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'url';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php
index 9e5d54137b8..f8cbbab1e31 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:765a5a578d09ff1a4662c313438f7995)
+ * (GenCodeChecksum:fb2a7a67345007ac9a5c10109579bdd1)
  */
 
 /**
diff --git a/CRM/Core/DAO/Worldregion.php b/CRM/Core/DAO/Worldregion.php
index 9d4615c1b8f..618785cebc4 100644
--- a/CRM/Core/DAO/Worldregion.php
+++ b/CRM/Core/DAO/Worldregion.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Worldregion.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bc0230cdd003ef494022c8d78486656e)
+ * (GenCodeChecksum:2f91a9ed30715b6c08bd8913d6a8fe88)
  */
 
 /**
diff --git a/CRM/Cxn/DAO/Cxn.php b/CRM/Cxn/DAO/Cxn.php
index 08b20f33757..5956d23807a 100644
--- a/CRM/Cxn/DAO/Cxn.php
+++ b/CRM/Cxn/DAO/Cxn.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Cxn/Cxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4c6be1bafb940a9e87e5952364b00fb1)
+ * (GenCodeChecksum:5cf7a8ccd1c1453d25dce3fef34f1dbb)
  */
 
 /**
diff --git a/CRM/Dedupe/DAO/Exception.php b/CRM/Dedupe/DAO/Exception.php
index b5d6939707c..c650f686690 100644
--- a/CRM/Dedupe/DAO/Exception.php
+++ b/CRM/Dedupe/DAO/Exception.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Exception.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:10f530a37c036ee1bd91295ed84e0c6d)
+ * (GenCodeChecksum:6d9c7d81ac4475428d43659344ae39b8)
  */
 
 /**
diff --git a/CRM/Dedupe/DAO/Rule.php b/CRM/Dedupe/DAO/Rule.php
index 459714a31af..7d95879967d 100644
--- a/CRM/Dedupe/DAO/Rule.php
+++ b/CRM/Dedupe/DAO/Rule.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Rule.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7771f7be0df7716eb9372415720e1622)
+ * (GenCodeChecksum:682c730aac1fbf17f0cc2048e4b328f7)
  */
 
 /**
diff --git a/CRM/Dedupe/DAO/RuleGroup.php b/CRM/Dedupe/DAO/RuleGroup.php
index f8636db8798..d7c16a171a8 100644
--- a/CRM/Dedupe/DAO/RuleGroup.php
+++ b/CRM/Dedupe/DAO/RuleGroup.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/RuleGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:521bf67a7ab4ab491ff90780009e759f)
+ * (GenCodeChecksum:f7430387dfcfaacfd48a49d8d39d3c8b)
  */
 
 /**
diff --git a/CRM/Event/Cart/DAO/Cart.php b/CRM/Event/Cart/DAO/Cart.php
index 6125df0f7f5..bf1a2b60730 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:b3bc270f4bdd9b9a8744b2391bcba154)
+ * (GenCodeChecksum:b762caa85205605d2c3c052da51d3448)
  */
 
 /**
diff --git a/CRM/Event/Cart/DAO/EventInCart.php b/CRM/Event/Cart/DAO/EventInCart.php
index aad296ee962..865af15401a 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:f08a1e139f2486ec664ccad97f121e7e)
+ * (GenCodeChecksum:edd6f68d78455072c15bcb051abc98f9)
  */
 
 /**
diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php
index 7cd25de01e7..ea4305c1da9 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:b24aa9a8e4e0f838a71effac403eeeb7)
+ * (GenCodeChecksum:8747fe6387fcdec07b14c8a72e35868b)
  */
 
 /**
@@ -31,6 +31,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
    */
   public static $_icon = 'fa-calendar';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php
index c883a9f54f0..34537d28fa4 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:25a479f6858f45acff4110a2de47bbae)
+ * (GenCodeChecksum:a746f8f8a28c6f945abbba148794d2c2)
  */
 
 /**
diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php
index 99f836c3dfe..59a5b1ba316 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:46b1d29e4240673e67e23252fd2a1e1b)
+ * (GenCodeChecksum:aa8546c94f2f8c9fc72109f58b80c2bc)
  */
 
 /**
diff --git a/CRM/Event/DAO/ParticipantStatusType.php b/CRM/Event/DAO/ParticipantStatusType.php
index 028a28f1681..10bdbf4ade4 100644
--- a/CRM/Event/DAO/ParticipantStatusType.php
+++ b/CRM/Event/DAO/ParticipantStatusType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/ParticipantStatusType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:05084131b15d6dd7f29ad8d62df1bb82)
+ * (GenCodeChecksum:7390922bd58d23808a484981bd822aed)
  */
 
 /**
diff --git a/CRM/Financial/DAO/Currency.php b/CRM/Financial/DAO/Currency.php
index c7fbee1473c..fef3fec8b2c 100644
--- a/CRM/Financial/DAO/Currency.php
+++ b/CRM/Financial/DAO/Currency.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/Currency.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dfa755f71113ba5258a488c28b9a1273)
+ * (GenCodeChecksum:a9172e230dd513e6a06f5fec2e0ddb90)
  */
 
 /**
diff --git a/CRM/Financial/DAO/EntityFinancialAccount.php b/CRM/Financial/DAO/EntityFinancialAccount.php
index 9dafc39a718..650237fa28b 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:4fc4867bfb36e44a31368515e6b9aad3)
+ * (GenCodeChecksum:e7fe0d109914d345588895ccf1838406)
  */
 
 /**
diff --git a/CRM/Financial/DAO/EntityFinancialTrxn.php b/CRM/Financial/DAO/EntityFinancialTrxn.php
index 8d5fd5c75ea..980cb84282b 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:4f05ac73d1ac6b79d0c9fade6ec4adbd)
+ * (GenCodeChecksum:2912f015bf4110e65ee786c0ae45656c)
  */
 
 /**
diff --git a/CRM/Financial/DAO/FinancialAccount.php b/CRM/Financial/DAO/FinancialAccount.php
index 9158cf3d672..41c4eb8c01c 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:ecd889135e73d124a753ac96a7dd05bc)
+ * (GenCodeChecksum:10364ea2fe3f28106488849b2c495f0b)
  */
 
 /**
diff --git a/CRM/Financial/DAO/FinancialItem.php b/CRM/Financial/DAO/FinancialItem.php
index 0db8ea56c56..d9844515d7c 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:b3bc1270d0d0769da2bd49b49585ac61)
+ * (GenCodeChecksum:d8fb58f8b09009330bcb325ebfea20e0)
  */
 
 /**
diff --git a/CRM/Financial/DAO/FinancialTrxn.php b/CRM/Financial/DAO/FinancialTrxn.php
index 5bd0cb5b1b9..77156b1951e 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:fc046a70dcf53925768a8b28647dd6dc)
+ * (GenCodeChecksum:051ade878e9e6696ed4e2615e7362ae4)
  */
 
 /**
diff --git a/CRM/Financial/DAO/FinancialType.php b/CRM/Financial/DAO/FinancialType.php
index 2a3d44bba6c..349daa199dc 100644
--- a/CRM/Financial/DAO/FinancialType.php
+++ b/CRM/Financial/DAO/FinancialType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ddbf4faec2a77ef3fa7b9d126c9d0443)
+ * (GenCodeChecksum:870f3b71b12b41ed1e0e59e1ff57b2db)
  */
 
 /**
@@ -24,6 +24,13 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_financial_type';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php
index 60158912954..73c0b2b9287 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:ce0ba2d5ffb2cc00c72c3c300db8eadf)
+ * (GenCodeChecksum:8c42ca973c4031a67a5052682c3d73e7)
  */
 
 /**
diff --git a/CRM/Financial/DAO/PaymentProcessorType.php b/CRM/Financial/DAO/PaymentProcessorType.php
index bdb4c8e0943..85388fd7b0e 100644
--- a/CRM/Financial/DAO/PaymentProcessorType.php
+++ b/CRM/Financial/DAO/PaymentProcessorType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:15dff8fa9ba4df684c09d6fb8c9f0430)
+ * (GenCodeChecksum:f9fcb11332c6ea71f0154640b3c68fd0)
  */
 
 /**
diff --git a/CRM/Financial/DAO/PaymentToken.php b/CRM/Financial/DAO/PaymentToken.php
index c983f9afd61..c8daffcebc9 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:8ceea9ee5d164fb8b69a178117a7ebb8)
+ * (GenCodeChecksum:86a461eda642a7a84d3a78eb9f23691d)
  */
 
 /**
diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php
index 61d6d984838..ce763be30fb 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:3d5fa2c27a1430537988ce50ac455566)
+ * (GenCodeChecksum:8c8c8cacf834ac9e53d14f781a844d50)
  */
 
 /**
diff --git a/CRM/Grant/DAO/Grant.php b/CRM/Grant/DAO/Grant.php
index b61479b16b2..763e987a26e 100644
--- a/CRM/Grant/DAO/Grant.php
+++ b/CRM/Grant/DAO/Grant.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Grant/Grant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4ab9a294ffb22e1a8ff42103bc6f9bed)
+ * (GenCodeChecksum:02b3cf969c3c6b7fb7960ffca2f57eb7)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php
index ad0248d4eef..ff07795a6c0 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:b6a045ddc0126618d3ee8c08a1c495b0)
+ * (GenCodeChecksum:b80f792e12420d9022ce8fa209051fc4)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/BounceType.php b/CRM/Mailing/DAO/BounceType.php
index d4fcce67622..a818831e74c 100644
--- a/CRM/Mailing/DAO/BounceType.php
+++ b/CRM/Mailing/DAO/BounceType.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/BounceType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fda474bf7647672115d82925ba255f6d)
+ * (GenCodeChecksum:d85cecf66659cee08c967e8671ba7b6d)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php
index 3fd0735bffa..0f754955da1 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:e64cedbbdd4a36410257c174d92faae4)
+ * (GenCodeChecksum:e2de6d8875a7f838b190810bcec4e27e)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php
index c81af427b2d..9b4572a42fe 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:175573c32fef00a9a00350db020b1696)
+ * (GenCodeChecksum:1308702399d924188a14948adb1a8a3f)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/MailingComponent.php b/CRM/Mailing/DAO/MailingComponent.php
index 1633191ed19..a226619b4dc 100644
--- a/CRM/Mailing/DAO/MailingComponent.php
+++ b/CRM/Mailing/DAO/MailingComponent.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingComponent.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c7300c29b273a7e479cd5b77bc951be8)
+ * (GenCodeChecksum:c0dc3b9eb926996a014984996efa7da3)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/MailingGroup.php b/CRM/Mailing/DAO/MailingGroup.php
index 031e68b9464..22c7bf605de 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:fca3e29764697a459aa7d5000fec50b5)
+ * (GenCodeChecksum:88cec18ec4ae0f83580267d64c0ddbd3)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php
index 0fd88a85e2f..0018b8c066a 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:1b9f973abaa13e77251c3082a4fa7363)
+ * (GenCodeChecksum:16d3f472e9379145910fa49ef5d2576a)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/Recipients.php b/CRM/Mailing/DAO/Recipients.php
index 8d1b9d4eacb..ecbfe5d6215 100644
--- a/CRM/Mailing/DAO/Recipients.php
+++ b/CRM/Mailing/DAO/Recipients.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Recipients.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fc6a72dcf5e8f2519fc503568b048b74)
+ * (GenCodeChecksum:7428211457ae09e5130c0cbcd33c30db)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php
index 35bf153891d..2e978a70da1 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:20306dd6c4ce1990d47a78f8cd42606a)
+ * (GenCodeChecksum:c682e199c6d4026f4b2e00c184d066ae)
  */
 
 /**
diff --git a/CRM/Mailing/DAO/TrackableURL.php b/CRM/Mailing/DAO/TrackableURL.php
index dc6f6cc5923..5fce2651ea4 100644
--- a/CRM/Mailing/DAO/TrackableURL.php
+++ b/CRM/Mailing/DAO/TrackableURL.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/TrackableURL.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a3235a7f9b19cd9594dab7408265f615)
+ * (GenCodeChecksum:c783ac33364c2caa8e884035cf529358)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Bounce.php b/CRM/Mailing/Event/DAO/Bounce.php
index da494bb5c39..f4529f95ac4 100644
--- a/CRM/Mailing/Event/DAO/Bounce.php
+++ b/CRM/Mailing/Event/DAO/Bounce.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Bounce.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:038d036df266976a9e221e012cbce300)
+ * (GenCodeChecksum:e6864a672a16b91aa1b34bbc3789162f)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Confirm.php b/CRM/Mailing/Event/DAO/Confirm.php
index e7e6417e92a..bdb0f812ec1 100644
--- a/CRM/Mailing/Event/DAO/Confirm.php
+++ b/CRM/Mailing/Event/DAO/Confirm.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Confirm.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:caafb56ba924cdafc1046117472abea4)
+ * (GenCodeChecksum:cb8f8feb732892945871909f7ed0455a)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Delivered.php b/CRM/Mailing/Event/DAO/Delivered.php
index e7a3b5f31ab..2efbb1a06fe 100644
--- a/CRM/Mailing/Event/DAO/Delivered.php
+++ b/CRM/Mailing/Event/DAO/Delivered.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Delivered.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:71a76da9eb416abb6fe7452aa240c62e)
+ * (GenCodeChecksum:9f53cffbe35f2c67187ab62cceff6f34)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Forward.php b/CRM/Mailing/Event/DAO/Forward.php
index 3df2bd70ead..dc1702c8bda 100644
--- a/CRM/Mailing/Event/DAO/Forward.php
+++ b/CRM/Mailing/Event/DAO/Forward.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Forward.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:50c20c848979df5d0c98cdec8a44ad4b)
+ * (GenCodeChecksum:e8063aa60f5e82d20f0832855c44b082)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Opened.php b/CRM/Mailing/Event/DAO/Opened.php
index b3df0ae7693..430730bf6ff 100644
--- a/CRM/Mailing/Event/DAO/Opened.php
+++ b/CRM/Mailing/Event/DAO/Opened.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Opened.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:33fb6a37888415b4e6dc6a159fb6157e)
+ * (GenCodeChecksum:ca8631f091b50e47cb6e40ae7b9ebec5)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Queue.php b/CRM/Mailing/Event/DAO/Queue.php
index d85953da871..ea55a2f50f4 100644
--- a/CRM/Mailing/Event/DAO/Queue.php
+++ b/CRM/Mailing/Event/DAO/Queue.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Queue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:46d2dfb87b5f9e0b0b425b29007b47e4)
+ * (GenCodeChecksum:8ffe8287484833271fa6f028e5231198)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Reply.php b/CRM/Mailing/Event/DAO/Reply.php
index c6b462e2274..3389b73e04a 100644
--- a/CRM/Mailing/Event/DAO/Reply.php
+++ b/CRM/Mailing/Event/DAO/Reply.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Reply.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2efc7b66635682132414c6724344bf55)
+ * (GenCodeChecksum:4ec45110e37edffa52e511607a16fc7c)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Subscribe.php b/CRM/Mailing/Event/DAO/Subscribe.php
index ae51468cefe..d2d20ccb4fe 100644
--- a/CRM/Mailing/Event/DAO/Subscribe.php
+++ b/CRM/Mailing/Event/DAO/Subscribe.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1a80e519891849628fc022202ebab69)
+ * (GenCodeChecksum:e327b7f0c61b9955118127b1cc81df13)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/TrackableURLOpen.php b/CRM/Mailing/Event/DAO/TrackableURLOpen.php
index e4e40d6f953..345a08d959f 100644
--- a/CRM/Mailing/Event/DAO/TrackableURLOpen.php
+++ b/CRM/Mailing/Event/DAO/TrackableURLOpen.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/TrackableURLOpen.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b72c3391aec97b4f66c2004364f597b3)
+ * (GenCodeChecksum:4ce8e6bf5b68d2903ade816d40e20513)
  */
 
 /**
diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php
index c351b71e570..04521a53481 100644
--- a/CRM/Mailing/Event/DAO/Unsubscribe.php
+++ b/CRM/Mailing/Event/DAO/Unsubscribe.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:20666a88b096371a3db2f12eb77a1404)
+ * (GenCodeChecksum:8428c65032df6e7e79fd378824b510bd)
  */
 
 /**
diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php
index ab9743aca9b..3b4cc635626 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:c69464029008f62263d9befb37b79391)
+ * (GenCodeChecksum:497f88dd714287acb6b42017dc0b7cd3)
  */
 
 /**
diff --git a/CRM/Member/DAO/MembershipBlock.php b/CRM/Member/DAO/MembershipBlock.php
index eabb31bbfc4..244cf0f9d2b 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:5e9363fa5064faee6dc27f96afcb4cf3)
+ * (GenCodeChecksum:687b0ecc1e487ede5c4c5719da6e3909)
  */
 
 /**
diff --git a/CRM/Member/DAO/MembershipLog.php b/CRM/Member/DAO/MembershipLog.php
index ebb957e58d1..bb220ae47e5 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:7374d7db00c9fe6e86a696434b8bba6f)
+ * (GenCodeChecksum:9766c309b84737eab95138742c8437b6)
  */
 
 /**
diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php
index 473e59f2796..06b6d80a012 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:19e551db721c6a286c81456c16568bea)
+ * (GenCodeChecksum:da6d071abd8e0d0353dabb2afc00d2bc)
  */
 
 /**
diff --git a/CRM/Member/DAO/MembershipStatus.php b/CRM/Member/DAO/MembershipStatus.php
index 94ec0409d5e..971d5a7f9a0 100644
--- a/CRM/Member/DAO/MembershipStatus.php
+++ b/CRM/Member/DAO/MembershipStatus.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipStatus.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:32d46c01e3eb4143e83820310037df39)
+ * (GenCodeChecksum:5a977831ac9d4940a996e6c2eb8b9c1d)
  */
 
 /**
@@ -24,6 +24,13 @@ class CRM_Member_DAO_MembershipStatus extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_membership_status';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'label';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php
index 3407bf99779..61717183f0b 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:867428c502b94f8a8ed29082ac7c3845)
+ * (GenCodeChecksum:fc8f5dc27b9a33132464da9c006ec85d)
  */
 
 /**
@@ -24,6 +24,13 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_membership_type';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php
index 44e31fff1e9..20082ae7a50 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:6799d7afab4c8caeb518d19653090978)
+ * (GenCodeChecksum:133163f158f7a842a37e9dba4da2b648)
  */
 
 /**
diff --git a/CRM/PCP/DAO/PCPBlock.php b/CRM/PCP/DAO/PCPBlock.php
index e11b5782ed8..a5a7a16ffdf 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:4e188de537dbafef837dcc55947ee1b4)
+ * (GenCodeChecksum:0faa54e4d68236817b226432e5bd9345)
  */
 
 /**
diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php
index cd7952b522e..c9ff550a9bf 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:6c3c68d4e00946adbfbc368e87d72a36)
+ * (GenCodeChecksum:8a17ba664d9a2c65860be67652def7f5)
  */
 
 /**
diff --git a/CRM/Pledge/DAO/PledgeBlock.php b/CRM/Pledge/DAO/PledgeBlock.php
index 048230641b8..03218aae335 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:044b9e8fedad0a0e71621172f92bddfb)
+ * (GenCodeChecksum:47f6d38b1b268722741b09f95a0280c7)
  */
 
 /**
diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php
index ffbca53c759..0d3fdc67634 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:4daa04efc77569c5e172fb2c92c956b2)
+ * (GenCodeChecksum:8055dbf00528ceb9dc2eaf626f5bfebc)
  */
 
 /**
diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php
index 262413aa4d2..16cc02060e8 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:eeaf69c8d27acbb7ad4dd4eba0c587d7)
+ * (GenCodeChecksum:352b3e74d3a66e445f53670cecaf6d02)
  */
 
 /**
diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php
index ec4c8e9d665..ecc417bc3aa 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:82c753fc735a0a09af3c426fff7603cf)
+ * (GenCodeChecksum:80c222a0dfea9ae97009c96e010fce90)
  */
 
 /**
diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php
index 25791f373cc..e030da529c3 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:d01e238a4afcdf6b79cc2dc59987361d)
+ * (GenCodeChecksum:4556e03b68f88f9fe61520ba3aa88be7)
  */
 
 /**
diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php
index 223ff10f4ad..2a380a54de0 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:9252b0d8247c5419198250cbf0a2a9d4)
+ * (GenCodeChecksum:4fe369dcc2eb277bdbb04d52be2d4a55)
  */
 
 /**
diff --git a/CRM/Price/DAO/PriceSetEntity.php b/CRM/Price/DAO/PriceSetEntity.php
index 9f28417ca17..fdae7c00172 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:b85629f3ae24a3f503327a5d60f4f17f)
+ * (GenCodeChecksum:2432785fb15a3b0c707ef841e9a7ceb8)
  */
 
 /**
diff --git a/CRM/Queue/DAO/QueueItem.php b/CRM/Queue/DAO/QueueItem.php
index 8eb9f6476ed..36e5c9df158 100644
--- a/CRM/Queue/DAO/QueueItem.php
+++ b/CRM/Queue/DAO/QueueItem.php
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Queue/QueueItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2ec3738d4db4ad5473162176d25f552c)
+ * (GenCodeChecksum:80b0f2b14031c2b5de3a9d81371a5b01)
  */
 
 /**
diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php
index 84c54915039..dc37d97d8b7 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:7c11a51cc566e33761a9f06522c43bbd)
+ * (GenCodeChecksum:e60478dd772b18e57443ff1cd0d1c72e)
  */
 
 /**
diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php
index e3358134396..5d4ac4e2a3c 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:6501ba50ba1ce7df2d0408cc78bb012c)
+ * (GenCodeChecksum:a30b3fc9b4995ff366e829f75368ec0a)
  */
 
 /**
diff --git a/Civi/Api4/Entity.php b/Civi/Api4/Entity.php
index 7bb80be3d1d..56892524941 100644
--- a/Civi/Api4/Entity.php
+++ b/Civi/Api4/Entity.php
@@ -84,6 +84,10 @@ class Entity extends Generic\AbstractEntity {
           'name' => 'dao',
           'description' => 'Class name for dao-based entities',
         ],
+        [
+          'name' => 'labelField',
+          'description' => 'Field to show when displaying a record',
+        ],
         [
           'name' => 'searchable',
           'description' => 'Should this entity be selectable in search kit UI',
diff --git a/Civi/Api4/Generic/AbstractEntity.php b/Civi/Api4/Generic/AbstractEntity.php
index 1c69eae15eb..ae17fcdd346 100644
--- a/Civi/Api4/Generic/AbstractEntity.php
+++ b/Civi/Api4/Generic/AbstractEntity.php
@@ -143,6 +143,7 @@ abstract class AbstractEntity {
     if ($dao) {
       $info['paths'] = $dao::getEntityPaths();
       $info['icon'] = $dao::$_icon;
+      $info['labelField'] = $dao::$_labelField;
       $info['dao'] = $dao;
     }
     foreach (ReflectionUtils::getTraits(static::class) as $trait) {
diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml
index 2a1dde72ea4..3f7ee3169ca 100644
--- a/xml/schema/Activity/Activity.xml
+++ b/xml/schema/Activity/Activity.xml
@@ -7,6 +7,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-tasks</icon>
+  <labelField>subject</labelField>
   <paths>
     <add>civicrm/activity?reset=1&amp;action=add&amp;context=standalone</add>
     <view>civicrm/activity?reset=1&amp;action=view&amp;id=[id]</view>
diff --git a/xml/schema/Campaign/Campaign.xml b/xml/schema/Campaign/Campaign.xml
index 99f1c19cf31..3610464350e 100644
--- a/xml/schema/Campaign/Campaign.xml
+++ b/xml/schema/Campaign/Campaign.xml
@@ -6,6 +6,7 @@
   <comment>Campaign Details.</comment>
   <add>3.3</add>
   <icon>fa-bullhorn</icon>
+  <labelField>title</labelField>
   <component>CiviCampaign</component>
   <paths>
     <add>civicrm/campaign/add?reset=1</add>
diff --git a/xml/schema/Campaign/Survey.xml b/xml/schema/Campaign/Survey.xml
index dc41dbeefaa..821af4bd4f4 100644
--- a/xml/schema/Campaign/Survey.xml
+++ b/xml/schema/Campaign/Survey.xml
@@ -6,6 +6,7 @@
   <comment>Campaign Survey Details.</comment>
   <add>3.2</add>
   <icon>fa-clipboard</icon>
+  <labelField>title</labelField>
   <component>CiviCampaign</component>
   <field>
     <name>id</name>
diff --git a/xml/schema/Case/Case.xml b/xml/schema/Case/Case.xml
index ed1dba9d797..8ecbf21cd7a 100644
--- a/xml/schema/Case/Case.xml
+++ b/xml/schema/Case/Case.xml
@@ -7,6 +7,7 @@
   <add>1.8</add>
   <log>true</log>
   <icon>fa-folder-open</icon>
+  <labelField>subject</labelField>
   <component>CiviCase</component>
   <field>
     <name>id</name>
diff --git a/xml/schema/Contact/Contact.xml b/xml/schema/Contact/Contact.xml
index 6002cc6f464..33c33703c2f 100644
--- a/xml/schema/Contact/Contact.xml
+++ b/xml/schema/Contact/Contact.xml
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-address-book-o</icon>
+  <labelField>display_name</labelField>
   <paths>
     <add>civicrm/contact/add?reset=1&amp;ct=[contact_type]</add>
     <view>civicrm/contact/view?reset=1&amp;cid=[id]</view>
diff --git a/xml/schema/Contact/Group.xml b/xml/schema/Contact/Group.xml
index e694a6a666a..9dfd7fc8579 100644
--- a/xml/schema/Contact/Group.xml
+++ b/xml/schema/Contact/Group.xml
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-users</icon>
+  <labelField>title</labelField>
   <paths>
     <add>civicrm/group/add?reset=1</add>
   </paths>
diff --git a/xml/schema/Contribute/ContributionPage.xml b/xml/schema/Contribute/ContributionPage.xml
index ec39744138b..a8db2380f4a 100644
--- a/xml/schema/Contribute/ContributionPage.xml
+++ b/xml/schema/Contribute/ContributionPage.xml
@@ -8,6 +8,7 @@
   <add>1.3</add>
   <log>true</log>
   <component>CiviContribute</component>
+  <labelField>title</labelField>
   <field>
     <name>id</name>
     <title>Contribution Page ID</title>
diff --git a/xml/schema/Contribute/Product.xml b/xml/schema/Contribute/Product.xml
index 2f4e32485ce..e75c938d866 100644
--- a/xml/schema/Contribute/Product.xml
+++ b/xml/schema/Contribute/Product.xml
@@ -8,6 +8,7 @@
   <add>1.4</add>
   <log>true</log>
   <component>CiviContribute</component>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Product ID</title>
diff --git a/xml/schema/Core/Country.xml b/xml/schema/Core/Country.xml
index fdf11731653..051ce788cec 100644
--- a/xml/schema/Core/Country.xml
+++ b/xml/schema/Core/Country.xml
@@ -5,6 +5,7 @@
   <class>Country</class>
   <name>civicrm_country</name>
   <add>1.1</add>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Country ID</title>
diff --git a/xml/schema/Core/County.xml b/xml/schema/Core/County.xml
index 936064e9eb8..db959aa660b 100644
--- a/xml/schema/Core/County.xml
+++ b/xml/schema/Core/County.xml
@@ -5,6 +5,7 @@
   <class>County</class>
   <name>civicrm_county</name>
   <add>1.1</add>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>County ID</title>
diff --git a/xml/schema/Core/CustomField.xml b/xml/schema/Core/CustomField.xml
index 54cd5c5d745..4232753f6f3 100644
--- a/xml/schema/Core/CustomField.xml
+++ b/xml/schema/Core/CustomField.xml
@@ -7,6 +7,7 @@
   <comment>Stores info about an extended (custom) property (data and form field info).</comment>
   <add>1.1</add>
   <log>true</log>
+  <labelField>label</labelField>
   <field>
     <name>id</name>
     <type>int unsigned</type>
diff --git a/xml/schema/Core/CustomGroup.xml b/xml/schema/Core/CustomGroup.xml
index e21458ecbaf..018e05bd22e 100644
--- a/xml/schema/Core/CustomGroup.xml
+++ b/xml/schema/Core/CustomGroup.xml
@@ -8,6 +8,7 @@
   </comment>
   <add>1.1</add>
   <log>true</log>
+  <labelField>title</labelField>
   <field>
     <name>id</name>
     <type>int unsigned</type>
diff --git a/xml/schema/Core/Email.xml b/xml/schema/Core/Email.xml
index 3a07e9e06ab..4a2bbe26152 100644
--- a/xml/schema/Core/Email.xml
+++ b/xml/schema/Core/Email.xml
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-envelope-o</icon>
+  <labelField>email</labelField>
   <field>
     <name>id</name>
     <title>Email ID</title>
diff --git a/xml/schema/Core/IM.xml b/xml/schema/Core/IM.xml
index 58ca90324dc..f521fb645a2 100644
--- a/xml/schema/Core/IM.xml
+++ b/xml/schema/Core/IM.xml
@@ -10,6 +10,7 @@
   <title>Instant Messaging</title>
   <titlePlural>Instant Messaging</titlePlural>
   <icon>fa-comments-o</icon>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Instant Messenger ID</title>
diff --git a/xml/schema/Core/Navigation.xml b/xml/schema/Core/Navigation.xml
index 5de7ea9d379..bc9dc654e73 100644
--- a/xml/schema/Core/Navigation.xml
+++ b/xml/schema/Core/Navigation.xml
@@ -6,6 +6,7 @@
   <name>civicrm_navigation</name>
   <comment>Table to store navigation.</comment>
   <add>3.0</add>
+  <labelField>label</labelField>
   <field>
     <name>id</name>
     <title>Navigation ID</title>
diff --git a/xml/schema/Core/Phone.xml b/xml/schema/Core/Phone.xml
index eb0ad8e1f6a..007ffa84863 100644
--- a/xml/schema/Core/Phone.xml
+++ b/xml/schema/Core/Phone.xml
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-phone</icon>
+  <labelField>phone</labelField>
   <field>
     <name>id</name>
     <title>Phone ID</title>
diff --git a/xml/schema/Core/StateProvince.xml b/xml/schema/Core/StateProvince.xml
index 3963138abb3..f2352e05922 100644
--- a/xml/schema/Core/StateProvince.xml
+++ b/xml/schema/Core/StateProvince.xml
@@ -7,6 +7,7 @@
   <add>1.1</add>
   <title>State/Province</title>
   <titlePlural>States/Provinces</titlePlural>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>State ID</title>
diff --git a/xml/schema/Core/Tag.xml b/xml/schema/Core/Tag.xml
index 6ea2e8e1e27..43229977b6d 100644
--- a/xml/schema/Core/Tag.xml
+++ b/xml/schema/Core/Tag.xml
@@ -8,6 +8,7 @@
   <add>1.1</add>
   <log>true</log>
   <icon>fa-tag</icon>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Tag ID</title>
diff --git a/xml/schema/Core/Website.xml b/xml/schema/Core/Website.xml
index e94f80ecc23..f9e8e0ea7a5 100644
--- a/xml/schema/Core/Website.xml
+++ b/xml/schema/Core/Website.xml
@@ -7,6 +7,7 @@
   <comment>Website information for a specific location.</comment>
   <add>3.2</add>
   <icon>fa-desktop</icon>
+  <labelField>url</labelField>
   <field>
     <name>id</name>
     <type>int unsigned</type>
diff --git a/xml/schema/Event/Event.xml b/xml/schema/Event/Event.xml
index 6bef35f2318..e6682fe97f2 100644
--- a/xml/schema/Event/Event.xml
+++ b/xml/schema/Event/Event.xml
@@ -7,6 +7,7 @@
   <add>1.7</add>
   <log>true</log>
   <icon>fa-calendar</icon>
+  <labelField>title</labelField>
   <component>CiviEvent</component>
   <paths>
     <add>civicrm/event/add?reset=1</add>
diff --git a/xml/schema/Financial/FinancialType.xml b/xml/schema/Financial/FinancialType.xml
index 09530a7ae35..43b0ce68a9e 100644
--- a/xml/schema/Financial/FinancialType.xml
+++ b/xml/schema/Financial/FinancialType.xml
@@ -8,6 +8,7 @@
   <comment>Formerly civicrm_contribution_type merged into this table in 4.3</comment>
   <log>true</log>
   <component>CiviContribute</component>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Financial Type ID</title>
diff --git a/xml/schema/Member/MembershipStatus.xml b/xml/schema/Member/MembershipStatus.xml
index becbbc63918..15201307d3f 100644
--- a/xml/schema/Member/MembershipStatus.xml
+++ b/xml/schema/Member/MembershipStatus.xml
@@ -8,6 +8,7 @@
   <add>1.5</add>
   <log>true</log>
   <component>CiviMember</component>
+  <labelField>label</labelField>
   <field>
     <name>id</name>
     <title>Membership Status ID</title>
diff --git a/xml/schema/Member/MembershipType.xml b/xml/schema/Member/MembershipType.xml
index bf2223bcb92..8316e655b74 100644
--- a/xml/schema/Member/MembershipType.xml
+++ b/xml/schema/Member/MembershipType.xml
@@ -8,6 +8,7 @@
   <add>1.5</add>
   <log>true</log>
   <component>CiviMember</component>
+  <labelField>name</labelField>
   <field>
     <name>id</name>
     <title>Membership Type ID</title>
diff --git a/xml/templates/dao.tpl b/xml/templates/dao.tpl
index f3ee2413331..e9e94f70c33 100644
--- a/xml/templates/dao.tpl
+++ b/xml/templates/dao.tpl
@@ -32,6 +32,15 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
       */
       public static $_icon = '{$table.icon}';
    {/if}
+
+   {if $table.labelField}
+     /**
+      * Field to show when displaying a record.
+      *
+      * @var string
+      */
+      public static $_labelField = '{$table.labelField}';
+   {/if}
       /**
        * Should CiviCRM log any modifications to this table in the civicrm_log table.
        *
-- 
GitLab