Merge pull request #22326 from totten/master-sqlpara
[civicrm-core.git] / CRM / Price / DAO / LineItem.php
index 4d027fbc98f96c33156de0d6d716f4e3068b4c95..4255cffa277b9c7227cfd47f1fd51e2b31b31981 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/LineItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:588f54f07db70f636888c88374b6b5b1)
+ * (GenCodeChecksum:27940b7d9e1152223c1fde0e32a8e909)
  */
 
 /**
@@ -129,6 +129,13 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
    */
   public $tax_amount;
 
+  /**
+   * Number of terms for this membership (only supported in Order->Payment flow). If the field is NULL it means unknown and it will be assumed to be 1 during payment.create if entity_table is civicrm_membership
+   *
+   * @var int
+   */
+  public $membership_num_terms;
+
   /**
    * Class constructor.
    */
@@ -268,7 +275,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
           'where' => 'civicrm_line_item.label',
-          'default' => 'NULL',
+          'default' => NULL,
           'table_name' => 'civicrm_line_item',
           'entity' => 'LineItem',
           'bao' => 'CRM_Price_BAO_LineItem',
@@ -342,7 +349,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'title' => ts('Line Item Participant Count'),
           'description' => ts('Participant count for field'),
           'where' => 'civicrm_line_item.participant_count',
-          'default' => 'NULL',
+          'default' => NULL,
           'table_name' => 'civicrm_line_item',
           'entity' => 'LineItem',
           'bao' => 'CRM_Price_BAO_LineItem',
@@ -358,7 +365,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'title' => ts('Option ID'),
           'description' => ts('FK to civicrm_price_field_value'),
           'where' => 'civicrm_line_item.price_field_value_id',
-          'default' => 'NULL',
+          'default' => NULL,
           'table_name' => 'civicrm_line_item',
           'entity' => 'LineItem',
           'bao' => 'CRM_Price_BAO_LineItem',
@@ -381,7 +388,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           'title' => ts('Financial Type ID'),
           'description' => ts('FK to Financial Type.'),
           'where' => 'civicrm_line_item.financial_type_id',
-          'default' => 'NULL',
+          'default' => NULL,
           'table_name' => 'civicrm_line_item',
           'entity' => 'LineItem',
           'bao' => 'CRM_Price_BAO_LineItem',
@@ -444,6 +451,19 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO {
           ],
           'add' => '4.6',
         ],
+        'membership_num_terms' => [
+          'name' => 'membership_num_terms',
+          'type' => CRM_Utils_Type::T_INT,
+          'title' => ts('Number of membership terms purchased'),
+          'description' => ts('Number of terms for this membership (only supported in Order->Payment flow). If the field is NULL it means unknown and it will be assumed to be 1 during payment.create if entity_table is civicrm_membership'),
+          'where' => 'civicrm_line_item.membership_num_terms',
+          'default' => NULL,
+          'table_name' => 'civicrm_line_item',
+          'entity' => 'LineItem',
+          'bao' => 'CRM_Price_BAO_LineItem',
+          'localizable' => 0,
+          'add' => '5.40',
+        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }