Regenerate DAO files to have 'where' fields defined
[civicrm-core.git] / CRM / Financial / DAO / FinancialAccount.php
index f2ab3fff119d5993cb20834b6dab7b750cffbdcb..99c784aa70e6adbdaf9a870755415e168f48448b 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/Financial/FinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4b1497d1607b10f8eec89c101665cd1d)
+ * (GenCodeChecksum:99e6943d33c4b4081a8d74e611589dd7)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_financial_account';
+  public static $_tableName = 'civicrm_financial_account';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * ID
@@ -149,7 +149,7 @@ class CRM_Financial_DAO_FinancialAccount 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(), 'contact_id', 'civicrm_contact', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_financial_account', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -169,8 +169,9 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Account ID'),
-          'description' => 'ID',
+          'description' => ts('ID'),
           'required' => TRUE,
+          'where' => 'civicrm_financial_account.id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -180,10 +181,11 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'name',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Financial Account Name'),
-          'description' => 'Financial Account Name.',
+          'description' => ts('Financial Account Name.'),
           'required' => TRUE,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_financial_account.name',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -193,7 +195,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'contact_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Contact ID'),
-          'description' => 'FK to Contact ID that is responsible for the funds in this account',
+          'description' => ts('FK to Contact ID that is responsible for the funds in this account'),
+          'where' => 'civicrm_financial_account.contact_id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -204,8 +207,9 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'financial_account_type_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Account Type'),
-          'description' => 'pseudo FK into civicrm_option_value.',
+          'description' => ts('pseudo FK into civicrm_option_value.'),
           'required' => TRUE,
+          'where' => 'civicrm_financial_account.financial_account_type_id',
           'default' => '3',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -223,13 +227,11 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'accounting_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Accounting Code'),
-          'description' => 'Optional value for mapping monies owed and received to accounting system codes.',
+          'description' => ts('Optional value for mapping monies owed and received to accounting system codes.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
-          'export' => TRUE,
           'where' => 'civicrm_financial_account.accounting_code',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -239,13 +241,11 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'account_type_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Account Type Code'),
-          'description' => 'Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).',
+          'description' => ts('Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
-          'export' => TRUE,
           'where' => 'civicrm_financial_account.account_type_code',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -255,9 +255,10 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'description',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Financial Account Description'),
-          'description' => 'Financial Type Description.',
+          'description' => ts('Financial Type Description.'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_financial_account.description',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -267,7 +268,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'parent_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Account Parent'),
-          'description' => 'Parent ID in account hierarchy',
+          'description' => ts('Parent ID in account hierarchy'),
+          'where' => 'civicrm_financial_account.parent_id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -278,7 +280,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_header_account',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Header Financial Account?'),
-          'description' => 'Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?',
+          'description' => ts('Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?'),
+          'where' => 'civicrm_financial_account.is_header_account',
           'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -289,7 +292,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_deductible',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Deductible Financial Account?'),
-          'description' => 'Is this account tax-deductible?',
+          'description' => ts('Is this account tax-deductible?'),
+          'where' => 'civicrm_financial_account.is_deductible',
           'default' => '1',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -300,7 +304,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_tax',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Tax Financial Account?'),
-          'description' => 'Is this account for taxes?',
+          'description' => ts('Is this account for taxes?'),
+          'where' => 'civicrm_financial_account.is_tax',
           'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -311,11 +316,12 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'tax_rate',
           'type' => CRM_Utils_Type::T_MONEY,
           'title' => ts('Financial Account Tax Rate'),
-          'description' => 'The percentage of the total_amount that is due for this tax.',
+          'description' => ts('The percentage of the total_amount that is due for this tax.'),
           'precision' => [
             10,
             8
           ],
+          'where' => 'civicrm_financial_account.tax_rate',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -325,7 +331,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_reserved',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Reserved Financial Account?'),
-          'description' => 'Is this a predefined system object?',
+          'description' => ts('Is this a predefined system object?'),
+          'where' => 'civicrm_financial_account.is_reserved',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -335,7 +342,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_active',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Financial Account is Active'),
-          'description' => 'Is this property active?',
+          'description' => ts('Is this property active?'),
+          'where' => 'civicrm_financial_account.is_active',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -345,7 +353,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'name' => 'is_default',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Default Financial Account'),
-          'description' => 'Is this account the default one (or default tax one) for its financial_account_type?',
+          'description' => ts('Is this account the default one (or default tax one) for its financial_account_type?'),
+          'where' => 'civicrm_financial_account.is_default',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',