CRM-20312 regenerated DAOS with indexes
[civicrm-core.git] / CRM / Price / DAO / PriceSetEntity.php
index 8f5a7ac479f45d8baaaf023b27b51de70f7831fd..41da550b55461d1675947efd60c75ea9f4b3e91d 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSetEntity.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:da96598372bdbc553ae76312db786c2c)
+ * (GenCodeChecksum:6113d40ca79159b19d2c915aeb620e7c)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -206,4 +206,22 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_set_entity', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'UI_entity' => array(
+        'name' => 'UI_entity',
+        'field' => array(
+          0 => 'entity_table',
+          1 => 'entity_id',
+        ) ,
+        'localizable' => false,
+        'unique' => true,
+        'sig' => 'civicrm_price_set_entity::1::entity_table::entity_id',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }