Merge pull request #14249 from yashodha/959_dev
[civicrm-core.git] / CRM / Mailing / Event / DAO / Unsubscribe.php
index 8459b8a50bd28814e8027a463bb6a26f8c04ad7f..8e7d40ddd7e37a1a72cf43d498217a6788fb7352 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e2a14fa1a63bd3f7b4e4fb4864a8560e)
+ * (GenCodeChecksum:f3f2e48cc72b5cacff2aad1e146e70f8)
  */
 
 /**
@@ -29,21 +29,21 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
   public static $_log = FALSE;
 
   /**
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
   /**
    * FK to EventQueue
    *
-   * @var int unsigned
+   * @var int
    */
   public $event_queue_id;
 
   /**
    * Unsubscribe at org- or group-level
    *
-   * @var boolean
+   * @var bool
    */
   public $org_unsubscribe;
 
@@ -70,7 +70,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe 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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
     }
@@ -90,6 +90,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Unsubscribe ID'),
           'required' => TRUE,
+          'where' => 'civicrm_mailing_event_unsubscribe.id',
           'table_name' => 'civicrm_mailing_event_unsubscribe',
           'entity' => 'Unsubscribe',
           'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
@@ -101,6 +102,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
           'title' => ts('Mailing Event Queue'),
           'description' => ts('FK to EventQueue'),
           'required' => TRUE,
+          'where' => 'civicrm_mailing_event_unsubscribe.event_queue_id',
           'table_name' => 'civicrm_mailing_event_unsubscribe',
           'entity' => 'Unsubscribe',
           'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
@@ -113,6 +115,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
           'title' => ts('Unsubscribe is for Organization?'),
           'description' => ts('Unsubscribe at org- or group-level'),
           'required' => TRUE,
+          'where' => 'civicrm_mailing_event_unsubscribe.org_unsubscribe',
           'table_name' => 'civicrm_mailing_event_unsubscribe',
           'entity' => 'Unsubscribe',
           'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
@@ -124,6 +127,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
           'title' => ts('Unsubscribe Timestamp'),
           'description' => ts('When this delivery event occurred.'),
           'required' => TRUE,
+          'where' => 'civicrm_mailing_event_unsubscribe.time_stamp',
           'default' => 'CURRENT_TIMESTAMP',
           'table_name' => 'civicrm_mailing_event_unsubscribe',
           'entity' => 'Unsubscribe',