Regenerate DAO files to have 'where' fields defined
[civicrm-core.git] / CRM / Price / DAO / PriceFieldValue.php
index 8ed3cadfc4eebdadc237918b2c98802f002f4ba2..bd6f7daa200124a763dca072396cdb0b3eab5f0c 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/Price/PriceFieldValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fab6fa9814f0f984add020b2f1c58b18)
+ * (GenCodeChecksum:a3de204f039daa85984316fae2c60975)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_price_field_value';
+  public static $_tableName = 'civicrm_price_field_value';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
    * Price Field Value
@@ -57,7 +57,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
   public $label;
 
   /**
-   * >Price field option description.
+   * Price field option description.
    *
    * @var text
    */
@@ -170,7 +170,7 @@ class CRM_Price_DAO_PriceFieldValue 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(), 'price_field_id', 'civicrm_price_field', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_id', 'civicrm_membership_type', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
@@ -193,6 +193,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'title' => ts('Price Field Value ID'),
           'description' => ts('Price Field Value'),
           'required' => TRUE,
+          'where' => 'civicrm_price_field_value.id',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
@@ -204,6 +205,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'title' => ts('Price Field'),
           'description' => ts('FK to civicrm_price_field'),
           'required' => TRUE,
+          'where' => 'civicrm_price_field_value.price_field_id',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
@@ -217,6 +219,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'description' => ts('Price field option name'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_price_field_value.name',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
@@ -232,6 +235,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'description' => ts('Price field option label'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_price_field_value.label',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
@@ -244,9 +248,10 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'name' => 'description',
           'type' => CRM_Utils_Type::T_TEXT,
           'title' => ts('Description'),
-          'description' => ts('>Price field option description.'),
+          'description' => ts('Price field option description.'),
           'rows' => 2,
           'cols' => 60,
+          'where' => 'civicrm_price_field_value.description',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -263,6 +268,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'description' => ts('Price field option pre help text.'),
           'rows' => 2,
           'cols' => 60,
+          'where' => 'civicrm_price_field_value.help_pre',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -279,6 +285,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'description' => ts('Price field option post field help.'),
           'rows' => 2,
           'cols' => 60,
+          'where' => 'civicrm_price_field_value.help_post',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -298,6 +305,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
             18,
             9
           ],
+          'where' => 'civicrm_price_field_value.amount',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
@@ -311,6 +319,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Count'),
           'description' => ts('Number of participants per field option'),
+          'where' => 'civicrm_price_field_value.count',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -325,6 +334,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Max Value'),
           'description' => ts('Max number of participants per field options'),
+          'where' => 'civicrm_price_field_value.max_value',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -339,6 +349,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Order'),
           'description' => ts('Order in which the field options should appear'),
+          'where' => 'civicrm_price_field_value.weight',
           'default' => '1',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -353,6 +364,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Membership Type'),
           'description' => ts('FK to Membership Type'),
+          'where' => 'civicrm_price_field_value.membership_type_id',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -368,6 +380,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Membership Num Terms'),
           'description' => ts('Number of terms for this membership'),
+          'where' => 'civicrm_price_field_value.membership_num_terms',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -382,6 +395,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Default Price Field Option?'),
           'description' => ts('Is this default price field option'),
+          'where' => 'civicrm_price_field_value.is_default',
           'default' => '0',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -396,6 +410,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Price Field Value is Active'),
           'description' => ts('Is this price field value active'),
+          'where' => 'civicrm_price_field_value.is_active',
           'default' => '1',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -407,6 +422,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Type'),
           'description' => ts('FK to Financial Type.'),
+          'where' => 'civicrm_price_field_value.financial_type_id',
           'default' => 'NULL',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -432,6 +448,9 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
             20,
             2
           ],
+          'where' => 'civicrm_price_field_value.non_deductible_amount',
+          'headerPattern' => '/non?.?deduct/i',
+          'dataPattern' => '/^\d+(\.\d{2})?$/',
           'default' => '0.0',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
@@ -446,6 +465,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Price Field Option Visibility'),
           'description' => ts('Implicit FK to civicrm_option_group with name = \'visibility\''),
+          'where' => 'civicrm_price_field_value.visibility_id',
           'default' => '1',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',