Merge pull request #14062 from civicrm/5.13
[civicrm-core.git] / CRM / Core / DAO / County.php
index b431cf166ad628f431c25261c8d72b49e50abeda..f3dedbed8e424374dfceec9cc28614ea556f62a3 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  *
  * Generated from xml/schema/CRM/Core/County.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:deaadd903f7cfee93f6b70fb2e9fc012)
+ * (GenCodeChecksum:74b37d0061cdff5aa638ff68f3879b6c)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_county';
+  public static $_tableName = 'civicrm_county';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
    * County ID
@@ -72,7 +72,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'state_province_id', 'civicrm_state_province', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
     }
@@ -91,8 +91,9 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('County ID'),
-          'description' => 'County ID',
+          'description' => ts('County ID'),
           'required' => TRUE,
+          'where' => 'civicrm_county.id',
           'table_name' => 'civicrm_county',
           'entity' => 'County',
           'bao' => 'CRM_Core_DAO_County',
@@ -102,7 +103,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'name' => 'name',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('County'),
-          'description' => 'Name of County',
+          'description' => ts('Name of County'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
           'import' => TRUE,
@@ -119,9 +120,10 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'name' => 'abbreviation',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('County Abbreviation'),
-          'description' => '2-4 Character Abbreviation of County',
+          'description' => ts('2-4 Character Abbreviation of County'),
           'maxlength' => 4,
           'size' => CRM_Utils_Type::FOUR,
+          'where' => 'civicrm_county.abbreviation',
           'table_name' => 'civicrm_county',
           'entity' => 'County',
           'bao' => 'CRM_Core_DAO_County',
@@ -131,8 +133,9 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'name' => 'state_province_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('State'),
-          'description' => 'ID of State/Province that County belongs',
+          'description' => ts('ID of State/Province that County belongs'),
           'required' => TRUE,
+          'where' => 'civicrm_county.state_province_id',
           'table_name' => 'civicrm_county',
           'entity' => 'County',
           'bao' => 'CRM_Core_DAO_County',