Merge pull request #15263 from JMAConsulting/financial-67
[civicrm-core.git] / CRM / Core / DAO / MappingField.php
index afa1179d87f20aada969d7acc95a74358b5c3e0d..1550b008c9b6dbbf20a153c0929640eb6b84254e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MappingField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e18a4d7c43e3fded3e10bed98437577e)
+ * (GenCodeChecksum:11ff525a557ec58ebfa4fed22af699ea)
  */
 
 /**
@@ -186,7 +186,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
         'name' => [
           'name' => 'name',
           'type' => CRM_Utils_Type::T_STRING,
-          'title' => ts('Name'),
+          'title' => ts('Field Name (or unique reference)'),
           'description' => ts('Mapping field key'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
@@ -215,7 +215,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
         'column_number' => [
           'name' => 'column_number',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Column Number'),
+          'title' => ts('Column Number to map to'),
           'description' => ts('Column number for mapping set'),
           'required' => TRUE,
           'where' => 'civicrm_mapping_field.column_number',
@@ -235,11 +235,16 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_MappingField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_LocationType',
+          'pseudoconstant' => [
+            'table' => 'civicrm_location_type',
+            'keyColumn' => 'id',
+            'labelColumn' => 'display_name',
+          ],
         ],
         'phone_type_id' => [
           'name' => 'phone_type_id',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Phone type ID'),
+          'title' => ts('Phone Type'),
           'description' => ts('Which type of phone does this number belongs.'),
           'where' => 'civicrm_mapping_field.phone_type_id',
           'table_name' => 'civicrm_mapping_field',
@@ -310,7 +315,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
         'grouping' => [
           'name' => 'grouping',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Grouping'),
+          'title' => ts('Field Grouping'),
           'description' => ts('Used to group mapping_field records into related sets (e.g. for criteria sets in search builder
       mappings).'),
           'where' => 'civicrm_mapping_field.grouping',
@@ -342,7 +347,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
         'value' => [
           'name' => 'value',
           'type' => CRM_Utils_Type::T_STRING,
-          'title' => ts('Value'),
+          'title' => ts('Search builder where clause'),
           'description' => ts('SQL WHERE value for search-builder mapping fields.'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,