X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FDAO%2FContributionSoft.php;h=7ea4ff7b9851700db561de9424d2b99bb80afb3e;hb=042043f10262ec2859dc7d5c4786e3c0f564a095;hp=b11830cb02c09a919574eb87ca483bd9ecce1370;hpb=845147da83519a49bcdf4ec54cbfe7abb71f8540;p=civicrm-core.git diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index b11830cb02..7ea4ff7b98 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -2,11 +2,11 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b9a4bdee130cdaf934a53e456cd0e3e8) + * (GenCodeChecksum:80b29a1f7da297139c5265799fb4ffc3) */ /** @@ -19,14 +19,14 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_contribution_soft'; + public static $_tableName = 'civicrm_contribution_soft'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = TRUE; + public static $_log = TRUE; /** * Soft Contribution ID @@ -108,7 +108,7 @@ class CRM_Contribute_DAO_ContributionSoft 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(), 'contribution_id', 'civicrm_contribution', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'pcp_id', 'civicrm_pcp', 'id'); @@ -133,8 +133,6 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'required' => TRUE, 'import' => TRUE, 'where' => 'civicrm_contribution_soft.id', - 'headerPattern' => '', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -147,6 +145,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'title' => ts('Soft Contribution - Contribution'), 'description' => ts('FK to contribution table.'), 'required' => TRUE, + 'where' => 'civicrm_contribution_soft.contribution_id', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', 'bao' => 'CRM_Contribute_BAO_ContributionSoft', @@ -197,6 +196,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'description' => ts('3 character string, value from config setting or input via user.'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR, + 'where' => 'civicrm_contribution_soft.currency', 'default' => 'NULL', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -217,6 +217,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Soft Contribution PCP'), 'description' => ts('FK to civicrm_pcp.id'), + 'where' => 'civicrm_contribution_soft.pcp_id', 'default' => 'NULL', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -233,6 +234,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'name' => 'pcp_display_in_roll', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Soft Contribution Display on PCP'), + 'where' => 'civicrm_contribution_soft.pcp_display_in_roll', 'default' => '0', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -245,6 +247,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'title' => ts('Soft Contribution PCP Nickname'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_contribution_soft.pcp_roll_nickname', 'default' => 'NULL', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -257,6 +260,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'title' => ts('Soft Contribution PCP Note'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_contribution_soft.pcp_personal_note', 'default' => 'NULL', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft', @@ -271,6 +275,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Soft Credit Type'), 'description' => ts('Soft Credit Type ID.Implicit FK to civicrm_option_value where option_group = soft_credit_type.'), + 'where' => 'civicrm_contribution_soft.soft_credit_type_id', 'default' => 'NULL', 'table_name' => 'civicrm_contribution_soft', 'entity' => 'ContributionSoft',