Merge pull request #18857 from eileenmcnaughton/sort2
[civicrm-core.git] / CRM / Contact / DAO / RelationshipType.php
index 1fe25654f2be9b5244efdff946487f53c179ee5b..3ac981c81f84193346c2d7af75dc0109e51f72f6 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:81dab8a4d80601fe4afa3dc1556cc804)
+ * (GenCodeChecksum:258f862b2238ae69432d8955ae8df803)
  */
 
 /**
  * Database access object for the RelationshipType entity.
  */
 class CRM_Contact_DAO_RelationshipType 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_RelationshipType 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 Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationship Types') : ts('Relationship Type');
   }
 
   /**
@@ -146,6 +151,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'entity' => 'RelationshipType',
           'bao' => 'CRM_Contact_BAO_RelationshipType',
           'localizable' => 0,
+          'add' => '1.1',
         ],
         'name_a_b' => [
           'name' => 'name_a_b',
@@ -159,6 +165,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'entity' => 'RelationshipType',
           'bao' => 'CRM_Contact_BAO_RelationshipType',
           'localizable' => 0,
+          'add' => '1.1',
         ],
         'label_a_b' => [
           'name' => 'label_a_b',
@@ -175,6 +182,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '3.0',
         ],
         'name_b_a' => [
           'name' => 'name_b_a',
@@ -188,6 +196,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'entity' => 'RelationshipType',
           'bao' => 'CRM_Contact_BAO_RelationshipType',
           'localizable' => 0,
+          'add' => '1.1',
         ],
         'label_b_a' => [
           'name' => 'label_b_a',
@@ -204,6 +213,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '3.0',
         ],
         'description' => [
           'name' => 'description',
@@ -220,6 +230,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '1.1',
         ],
         'contact_type_a' => [
           'name' => 'contact_type_a',
@@ -242,6 +253,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
             'labelColumn' => 'label',
             'condition' => 'parent_id IS NULL',
           ],
+          'add' => '1.1',
         ],
         'contact_type_b' => [
           'name' => 'contact_type_b',
@@ -264,6 +276,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
             'labelColumn' => 'label',
             'condition' => 'parent_id IS NULL',
           ],
+          'add' => '1.1',
         ],
         'contact_sub_type_a' => [
           'name' => 'contact_sub_type_a',
@@ -286,6 +299,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
             'labelColumn' => 'label',
             'condition' => 'parent_id IS NOT NULL',
           ],
+          'add' => '3.1',
         ],
         'contact_sub_type_b' => [
           'name' => 'contact_sub_type_b',
@@ -308,6 +322,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
             'labelColumn' => 'label',
             'condition' => 'parent_id IS NOT NULL',
           ],
+          'add' => '3.1',
         ],
         'is_reserved' => [
           'name' => 'is_reserved',
@@ -322,6 +337,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'html' => [
             'type' => 'CheckBox',
           ],
+          'add' => '1.1',
         ],
         'is_active' => [
           'name' => 'is_active',
@@ -337,6 +353,7 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
           'html' => [
             'type' => 'CheckBox',
           ],
+          'add' => '1.1',
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);