Add pseudoconstant for Relationship.relationship_type_id
[civicrm-core.git] / CRM / Contact / DAO / Relationship.php
index 23c77467b2be2a0975ba5f738cbc64e03be76462..6312c40554160d383a87e937feb8dd47aa623809 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2046fac3c61cd88a17bf21dfe3e6f970)
+ * (GenCodeChecksum:5c1cfe38206fb7c465befe517bf6f23d)
  */
 
 /**
@@ -59,7 +59,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
   public $contact_id_b;
 
   /**
-   * id of the relationship
+   * Type of relationship
    *
    * @var int
    */
@@ -206,7 +206,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'name' => 'relationship_type_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Relationship Type'),
-          'description' => ts('id of the relationship'),
+          'description' => ts('Type of relationship'),
           'required' => TRUE,
           'where' => 'civicrm_relationship.relationship_type_id',
           'table_name' => 'civicrm_relationship',
@@ -217,6 +217,12 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'Select',
           ],
+          'pseudoconstant' => [
+            'table' => 'civicrm_relationship_type',
+            'keyColumn' => 'id',
+            'labelColumn' => 'label_a_b',
+            'nameColumn' => 'name_a_b',
+          ],
           'add' => '1.1',
         ],
         'relationship_start_date' => [