X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FUFMatch.php;h=0e072cef5d2e80c06c1307231cc65419bf44a4f9;hb=1c46a84c89447841b61043486877a8013ea8ebf7;hp=76f9c7ee7eede0d5871fdb9e106072d216875aa2;hpb=8b9a8f4abb25cfa7a498eaaa3e459e4d313e350a;p=civicrm-core.git diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php index 76f9c7ee7e..0e072cef5d 100644 --- a/CRM/Core/DAO/UFMatch.php +++ b/CRM/Core/DAO/UFMatch.php @@ -19,14 +19,14 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_uf_match'; + public static $_tableName = 'civicrm_uf_match'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = TRUE; + public static $_log = TRUE; /** * System generated ID. @@ -86,7 +86,7 @@ class CRM_Core_DAO_UFMatch 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(), 'domain_id', 'civicrm_domain', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); @@ -108,6 +108,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'title' => ts('UF Match ID'), 'description' => ts('System generated ID.'), 'required' => TRUE, + 'where' => 'civicrm_uf_match.id', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', @@ -119,6 +120,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'title' => ts('UF Match Domain ID'), 'description' => ts('Which Domain is this match entry for'), 'required' => TRUE, + 'where' => 'civicrm_uf_match.domain_id', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', @@ -136,6 +138,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'title' => ts('CMS ID'), 'description' => ts('UF ID'), 'required' => TRUE, + 'where' => 'civicrm_uf_match.uf_id', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', @@ -148,6 +151,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'description' => ts('UF Name'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_uf_match.uf_name', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', @@ -158,6 +162,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('CiviCRM Contact ID'), 'description' => ts('FK to Contact ID'), + 'where' => 'civicrm_uf_match.contact_id', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', @@ -171,6 +176,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'description' => ts('UI language preferred by the given user/contact'), 'maxlength' => 5, 'size' => CRM_Utils_Type::SIX, + 'where' => 'civicrm_uf_match.language', 'table_name' => 'civicrm_uf_match', 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch',