Merge pull request #9886 from JMAConsulting/CRM-20169
[civicrm-core.git] / CRM / Dedupe / DAO / Exception.php
index 85a98e6ae6b738b7c0bf2e2ec9936dd37d135eb0..3b6b7e52b14b71d10cd55b34381843da31534b23 100644 (file)
  *
  * 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';
+/**
+ * CRM_Dedupe_DAO_Exception constructor.
+ */
 class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_dedupe_exception';
   /**
-   * static value to see if we should log any modifications to
-   * this table in the civicrm_log table
+   * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var boolean
    */
@@ -67,16 +69,14 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO {
    */
   public $contact_id2;
   /**
-   * class constructor
-   *
-   * @return civicrm_dedupe_exception
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_dedupe_exception';
     parent::__construct();
   }
   /**
-   * Returns foreign keys and entity references
+   * Returns foreign keys and entity references.
    *
    * @return array
    *   [CRM_Core_Reference_Interface]
@@ -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;
+  }
 }