Merge pull request #14115 from civicrm/5.13
[civicrm-core.git] / CRM / Financial / DAO / FinancialType.php
index 0ba7aa946fc5a7a83399b13f6e9b3ed1088214bf..90a916f0750d552eb299bf921e8e067e4c15e081 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2313c49e821b4a909bf3c54e72576e9b)
+ * (GenCodeChecksum:760550280aaa0da48232ebdfb11170f9)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_financial_type';
+  public static $_tableName = 'civicrm_financial_type';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * ID of original financial_type so you can search this table by the financial_type.id and then select the relevant version based on the timestamp
@@ -92,6 +92,7 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'title' => ts('Financial Type ID'),
           'description' => ts('ID of original financial_type so you can search this table by the financial_type.id and then select the relevant version based on the timestamp'),
           'required' => TRUE,
+          'where' => 'civicrm_financial_type.id',
           'table_name' => 'civicrm_financial_type',
           'entity' => 'FinancialType',
           'bao' => 'CRM_Financial_BAO_FinancialType',
@@ -118,11 +119,6 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
             'type' => 'Text',
             'label' => ts("Name"),
           ],
-          'pseudoconstant' => [
-            'table' => 'civicrm_financial_type',
-            'keyColumn' => 'id',
-            'labelColumn' => 'name',
-          ]
         ],
         'description' => [
           'name' => 'description',
@@ -131,6 +127,7 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'description' => ts('Financial Type Description.'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_financial_type.description',
           'table_name' => 'civicrm_financial_type',
           'entity' => 'FinancialType',
           'bao' => 'CRM_Financial_BAO_FinancialType',
@@ -145,6 +142,7 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Tax Deductible?'),
           'description' => ts('Is this financial type tax-deductible? If true, contributions of this type may be fully OR partially deductible - non-deductible amount is stored in the Contribution record.'),
+          'where' => 'civicrm_financial_type.is_deductible',
           'default' => '1',
           'table_name' => 'civicrm_financial_type',
           'entity' => 'FinancialType',
@@ -160,6 +158,7 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Financial Type is Reserved?'),
           'description' => ts('Is this a predefined system object?'),
+          'where' => 'civicrm_financial_type.is_reserved',
           'table_name' => 'civicrm_financial_type',
           'entity' => 'FinancialType',
           'bao' => 'CRM_Financial_BAO_FinancialType',
@@ -174,6 +173,7 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Financial Type Is Active?'),
           'description' => ts('Is this property active?'),
+          'where' => 'civicrm_financial_type.is_active',
           'table_name' => 'civicrm_financial_type',
           'entity' => 'FinancialType',
           'bao' => 'CRM_Financial_BAO_FinancialType',