Merge pull request #18493 from mlutfy/campaignReportDefaults
[civicrm-core.git] / CRM / Contact / DAO / RelationshipCache.php
index 5b8f62cb2f596ea54805286cf781198e5ad66224..1e874cb2bd9ac70fbfc822e3db29c9f40f6151f4 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a586a5a5550a64db4c9907387c1411d)
+ * (GenCodeChecksum:6de8ba08019ff8821fd4e09f14db6da9)
  */
 
 /**
  * Database access object for the RelationshipCache entity.
  */
 class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
+  const EXT = 'civicrm';
+  const TABLE_ADDED = '5.29';
 
   /**
    * Static instance to hold the table name.
@@ -122,9 +124,12 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Relationship Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationship Caches') : ts('Relationship Cache');
   }
 
   /**
@@ -207,6 +212,9 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'entity' => 'RelationshipCache',
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_SelectValues::relationshipOrientation',
+          ],
           'add' => '5.29',
         ],
         'near_contact_id' => [
@@ -221,6 +229,9 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'html' => [
+            'type' => 'EntityRef',
+          ],
           'add' => '5.29',
         ],
         'near_relation' => [
@@ -235,6 +246,9 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'entity' => 'RelationshipCache',
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_PseudoConstant::relationshipTypeOptions',
+          ],
           'add' => '5.29',
         ],
         'far_contact_id' => [
@@ -266,6 +280,9 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO {
           'entity' => 'RelationshipCache',
           'bao' => 'CRM_Contact_BAO_RelationshipCache',
           'localizable' => 0,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_PseudoConstant::relationshipTypeOptions',
+          ],
           'add' => '5.29',
         ],
         'is_active' => [