Merge pull request #9886 from JMAConsulting/CRM-20169
[civicrm-core.git] / CRM / Dedupe / DAO / Exception.php
index b5727da2c8ee538fb570fcb7ad38012489a7487e..3b6b7e52b14b71d10cd55b34381843da31534b23 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Exception.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dcb340c85bb19050f0ed6c4c46dc8a4f)
+ * (GenCodeChecksum:5e9f138ebec5aa2fcfd30120dffacdf5)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -104,12 +104,20 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
           'title' => ts('Dedupe Exception ID') ,
           'description' => 'Unique dedupe exception id',
           'required' => true,
+          'table_name' => 'civicrm_dedupe_exception',
+          'entity' => 'Exception',
+          'bao' => 'CRM_Dedupe_DAO_Exception',
+          'localizable' => 0,
         ) ,
         'contact_id1' => array(
           'name' => 'contact_id1',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('First Dupe Contact ID') ,
           'description' => 'FK to Contact ID',
+          'table_name' => 'civicrm_dedupe_exception',
+          'entity' => 'Exception',
+          'bao' => 'CRM_Dedupe_DAO_Exception',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
         ) ,
         'contact_id2' => array(
@@ -117,6 +125,10 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Second Dupe Contact ID') ,
           'description' => 'FK to Contact ID',
+          'table_name' => 'civicrm_dedupe_exception',
+          'entity' => 'Exception',
+          'bao' => 'CRM_Dedupe_DAO_Exception',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
         ) ,
       );
@@ -174,4 +186,22 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dedupe_exception', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'UI_contact_id1_contact_id2' => array(
+        'name' => 'UI_contact_id1_contact_id2',
+        'field' => array(
+          0 => 'contact_id1',
+          1 => 'contact_id2',
+        ) ,
+        'localizable' => false,
+        'unique' => true,
+        'sig' => 'civicrm_dedupe_exception::1::contact_id1::contact_id2',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }