Merge pull request #23419 from chrisgaraffa/contactheader-regions
[civicrm-core.git] / CRM / Core / DAO / County.php
index 943f2d724b3b20730669e10760df8af712247c9f..72415042c8eb81591a41977f41446ed2f628a5e7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/County.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6666108a662d719144f390bf4746268d)
+ * (GenCodeChecksum:3b5b06caf78948fe6bbbafe831c2aa96)
  */
 
 /**
@@ -40,35 +40,45 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
   /**
    * County ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $id;
 
   /**
    * Name of County
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(64))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $name;
 
   /**
    * 2-4 Character Abbreviation of County
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(4))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $abbreviation;
 
   /**
    * ID of State/Province that County belongs
    *
-   * @var int
+   * @var int|string
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $state_province_id;
 
   /**
    * Is this County active?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_active;
 
@@ -181,6 +191,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
             'table' => 'civicrm_state_province',
             'keyColumn' => 'id',
             'labelColumn' => 'name',
+            'abbrColumn' => 'abbreviation',
           ],
           'add' => '1.1',
         ],
@@ -189,6 +200,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('County Is Active'),
           'description' => ts('Is this County active?'),
+          'required' => TRUE,
           'where' => 'civicrm_county.is_active',
           'default' => '1',
           'table_name' => 'civicrm_county',