Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Core / DAO / Email.php
index cd169bef4ac7778f611696e6e199ea3745e7dc61..1d36308a3081484cc41927c273a918e2c42ce718 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Email.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:198627a1fa129294e4c7be52939883e1)
+ * (GenCodeChecksum:6da9864657d2b5e46956386ab414d8d6)
  */
 
 /**
@@ -31,21 +31,21 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
   /**
    * Unique Email ID
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
   /**
    * FK to Contact ID
    *
-   * @var int unsigned
+   * @var int
    */
   public $contact_id;
 
   /**
    * Which Location does this email belong to.
    *
-   * @var int unsigned
+   * @var int
    */
   public $location_type_id;
 
@@ -59,28 +59,28 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
   /**
    * Is this the primary?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_primary;
 
   /**
    * Is this the billing?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_billing;
 
   /**
    * Implicit FK to civicrm_option_value where option_group = email_on_hold.
    *
-   * @var int unsigned
+   * @var int
    */
   public $on_hold;
 
   /**
    * Is this address for bulk mail ?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_bulkmail;
 
@@ -149,6 +149,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'title' => ts('Email ID'),
           'description' => ts('Unique Email ID'),
           'required' => TRUE,
+          'where' => 'civicrm_email.id',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -159,6 +160,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Email Contact'),
           'description' => ts('FK to Contact ID'),
+          'where' => 'civicrm_email.contact_id',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -170,6 +172,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Email Location Type'),
           'description' => ts('Which Location does this email belong to.'),
+          'where' => 'civicrm_email.location_type_id',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -181,7 +184,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
             'table' => 'civicrm_location_type',
             'keyColumn' => 'id',
             'labelColumn' => 'display_name',
-          ]
+          ],
         ],
         'email' => [
           'name' => 'email',
@@ -209,6 +212,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Primary email'),
           'description' => ts('Is this the primary?'),
+          'where' => 'civicrm_email.is_primary',
           'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
@@ -220,6 +224,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Billing Email?'),
           'description' => ts('Is this the billing?'),
+          'where' => 'civicrm_email.is_billing',
           'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
@@ -232,10 +237,8 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'title' => ts('On Hold'),
           'description' => ts('Implicit FK to civicrm_option_value where option_group = email_on_hold.'),
           'required' => TRUE,
-          'export' => TRUE,
           'where' => 'civicrm_email.on_hold',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
@@ -246,7 +249,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           ],
           'pseudoconstant' => [
             'callback' => 'CRM_Core_PseudoConstant::emailOnHoldOptions',
-          ]
+          ],
         ],
         'is_bulkmail' => [
           'name' => 'is_bulkmail',
@@ -254,10 +257,8 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'title' => ts('Use for Bulk Mail'),
           'description' => ts('Is this address for bulk mail ?'),
           'required' => TRUE,
-          'export' => TRUE,
           'where' => 'civicrm_email.is_bulkmail',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
@@ -269,6 +270,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Hold Date'),
           'description' => ts('When the address went on bounce hold'),
+          'where' => 'civicrm_email.hold_date',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -279,6 +281,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Reset Date'),
           'description' => ts('When the address bounce status was last reset'),
+          'where' => 'civicrm_email.reset_date',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -291,8 +294,6 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'description' => ts('Text formatted signature for the email.'),
           'import' => TRUE,
           'where' => 'civicrm_email.signature_text',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'default' => 'NULL',
           'table_name' => 'civicrm_email',
@@ -307,8 +308,6 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'description' => ts('HTML formatted signature for the email.'),
           'import' => TRUE,
           'where' => 'civicrm_email.signature_html',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'default' => 'NULL',
           'table_name' => 'civicrm_email',