X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FEvent%2FDAO%2FUnsubscribe.php;h=8e7d40ddd7e37a1a72cf43d498217a6788fb7352;hb=a0741dc66a56012dca28350f8c1ddaad5ec03918;hp=d8397181a6db6da605ee40904a0ee83e7e70b057;hpb=6fe426fc1c924bbfcf29735d5f9e9763b1dbd389;p=civicrm-core.git diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index d8397181a6..8e7d40ddd7 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -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) */ /** @@ -19,31 +19,31 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_mailing_event_unsubscribe'; + public static $_tableName = 'civicrm_mailing_event_unsubscribe'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = FALSE; + 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',