CRM-20312 regenerated DAOS with indexes
[civicrm-core.git] / CRM / Contact / DAO / GroupOrganization.php
index 97294bce523923c9c62cd27348f3a2607c6a668b..718a2bfda29c08fed6197c84ec758c8903f08967 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupOrganization.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:eb0d4093ec10c1851421ec66f88862f7)
+ * (GenCodeChecksum:8fcd7c11b9077c52f8d932eb20379618)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -196,4 +196,22 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group_organization', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'UI_group_organization' => array(
+        'name' => 'UI_group_organization',
+        'field' => array(
+          0 => 'group_id',
+          1 => 'organization_id',
+        ) ,
+        'localizable' => false,
+        'unique' => true,
+        'sig' => 'civicrm_group_organization::1::group_id::organization_id',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }