Merge pull request #23961 from totten/master-mgdphp-caseacttype
[civicrm-core.git] / CRM / Core / DAO / Email.php
index 81f8f4259ac5c6877f2feca5c289870f92c63e96..082c77f910250deae123510aa5eab81c3b04ba3d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Email.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7e30aa415b50a25add79b9553b5d7657)
+ * (GenCodeChecksum:58fe115e0962f83c3906bce5f663f0fc)
  */
 
 /**
@@ -47,84 +47,108 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
   /**
    * Unique Email ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $id;
 
   /**
    * FK to Contact ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $contact_id;
 
   /**
    * Which Location does this email belong to.
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $location_type_id;
 
   /**
    * Email address
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(254))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $email;
 
   /**
    * Is this the primary email address
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_primary;
 
   /**
    * Is this the billing?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_billing;
 
   /**
    * Implicit FK to civicrm_option_value where option_group = email_on_hold.
    *
-   * @var int
+   * @var int|string
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $on_hold;
 
   /**
    * Is this address for bulk mail ?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_bulkmail;
 
   /**
    * When the address went on bounce hold
    *
-   * @var datetime
+   * @var string|null
+   *   (SQL type: datetime)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $hold_date;
 
   /**
    * When the address bounce status was last reset
    *
-   * @var datetime
+   * @var string|null
+   *   (SQL type: datetime)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $reset_date;
 
   /**
    * Text formatted signature for the email.
    *
-   * @var text
+   * @var string|null
+   *   (SQL type: text)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $signature_text;
 
   /**
    * HTML formatted signature for the email.
    *
-   * @var text
+   * @var string|null
+   *   (SQL type: text)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $signature_html;
 
@@ -249,6 +273,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Primary email'),
           'description' => ts('Is this the primary email address'),
+          'required' => TRUE,
           'where' => 'civicrm_email.is_primary',
           'default' => '0',
           'table_name' => 'civicrm_email',
@@ -265,6 +290,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?'),
+          'required' => TRUE,
           'where' => 'civicrm_email.is_billing',
           'default' => '0',
           'table_name' => 'civicrm_email',