Merge pull request #18493 from mlutfy/campaignReportDefaults
[civicrm-core.git] / CRM / Contact / DAO / Relationship.php
index 0fdcca5d9d184d1aec26954ebcb78e10e342385b..8ad5e40702fd2e64cd43e439993f009502053f01 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f512c36730defcd334c0e6ccc896e7fb)
+ * (GenCodeChecksum:7fed0ad7c2ed2b072582b55afdb6469f)
  */
 
 /**
  * Database access object for the Relationship entity.
  */
 class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
+  const EXT = 'civicrm';
+  const TABLE_ADDED = '1.1';
 
   /**
    * Static instance to hold the table name.
@@ -122,9 +124,12 @@ class CRM_Contact_DAO_Relationship 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('Relationships');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationships') : ts('Relationship');
   }
 
   /**
@@ -164,6 +169,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'entity' => 'Relationship',
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
+          'add' => '1.1',
         ],
         'contact_id_a' => [
           'name' => 'contact_id_a',
@@ -177,6 +183,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'add' => '1.1',
         ],
         'contact_id_b' => [
           'name' => 'contact_id_b',
@@ -193,6 +200,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'EntityRef',
           ],
+          'add' => '1.1',
         ],
         'relationship_type_id' => [
           'name' => 'relationship_type_id',
@@ -209,6 +217,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'Select',
           ],
+          'add' => '1.1',
         ],
         'relationship_start_date' => [
           'name' => 'start_date',
@@ -224,6 +233,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
             'type' => 'Select Date',
             'formatType' => 'activityDate',
           ],
+          'add' => '1.1',
         ],
         'relationship_end_date' => [
           'name' => 'end_date',
@@ -239,6 +249,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
             'type' => 'Select Date',
             'formatType' => 'activityDate',
           ],
+          'add' => '1.1',
         ],
         'is_active' => [
           'name' => 'is_active',
@@ -254,6 +265,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'CheckBox',
           ],
+          'add' => '1.1',
         ],
         'description' => [
           'name' => 'description',
@@ -270,6 +282,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '1.5',
         ],
         'is_permission_a_b' => [
           'name' => 'is_permission_a_b',
@@ -289,6 +302,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
           ],
+          'add' => '2.1',
         ],
         'is_permission_b_a' => [
           'name' => 'is_permission_b_a',
@@ -308,6 +322,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
           ],
+          'add' => '2.1',
         ],
         'case_id' => [
           'name' => 'case_id',
@@ -321,6 +336,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'add' => '2.2',
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);