*/
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']);
}
'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',
'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',
'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',
'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',