Regenerate DAO files to have 'where' fields defined
[civicrm-core.git] / CRM / Campaign / DAO / CampaignGroup.php
index aa3d3ba831b6691fb0381bc94d91f8f16845e5b7..5c8ec894d4be4df252da6163493f52d08563298e 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/Campaign/CampaignGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:16989135f9745e57028278a41cc303ea)
+ * (GenCodeChecksum:9c9ee0c8ea79ddd0f680e8050693e5db)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_campaign_group';
+  public static $_tableName = 'civicrm_campaign_group';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
    * Campaign Group id.
@@ -79,7 +79,7 @@ class CRM_Campaign_DAO_CampaignGroup 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(), 'campaign_id', 'civicrm_campaign', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -99,8 +99,9 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Campaign Group ID'),
-          'description' => 'Campaign Group id.',
+          'description' => ts('Campaign Group id.'),
           'required' => TRUE,
+          'where' => 'civicrm_campaign_group.id',
           'table_name' => 'civicrm_campaign_group',
           'entity' => 'CampaignGroup',
           'bao' => 'CRM_Campaign_DAO_CampaignGroup',
@@ -110,8 +111,9 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'name' => 'campaign_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Campaign'),
-          'description' => 'Foreign key to the activity Campaign.',
+          'description' => ts('Foreign key to the activity Campaign.'),
           'required' => TRUE,
+          'where' => 'civicrm_campaign_group.campaign_id',
           'table_name' => 'civicrm_campaign_group',
           'entity' => 'CampaignGroup',
           'bao' => 'CRM_Campaign_DAO_CampaignGroup',
@@ -127,9 +129,10 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'name' => 'group_type',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Campaign Group Type'),
-          'description' => 'Type of Group.',
+          'description' => ts('Type of Group.'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
+          'where' => 'civicrm_campaign_group.group_type',
           'default' => 'NULL',
           'table_name' => 'civicrm_campaign_group',
           'entity' => 'CampaignGroup',
@@ -146,9 +149,10 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'name' => 'entity_table',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Entity Table'),
-          'description' => 'Name of table where item being referenced is stored.',
+          'description' => ts('Name of table where item being referenced is stored.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'where' => 'civicrm_campaign_group.entity_table',
           'default' => 'NULL',
           'table_name' => 'civicrm_campaign_group',
           'entity' => 'CampaignGroup',
@@ -159,7 +163,8 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
           'name' => 'entity_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Entity ID'),
-          'description' => 'Entity id of referenced table.',
+          'description' => ts('Entity id of referenced table.'),
+          'where' => 'civicrm_campaign_group.entity_id',
           'default' => 'NULL',
           'table_name' => 'civicrm_campaign_group',
           'entity' => 'CampaignGroup',