APIv4 - Add component metadata to Relationship.case_id field
authorColeman Watts <coleman@civicrm.org>
Sat, 16 Oct 2021 20:00:57 +0000 (16:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 16 Oct 2021 20:00:57 +0000 (16:00 -0400)
This will hide that field when CiviCase is disabled

CRM/Contact/DAO/Relationship.php
xml/schema/Contact/Relationship.xml

index 5c2783fceed22e16ead33b44b4cb87b8a89a1422..f1e76eb1ae05aff582d90bbe54a7b14bae6798f9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:402d6e2cc8ffa3be531d291a20f59560)
+ * (GenCodeChecksum:4d689d3ccc5aa155c858aac2f24ddfab)
  */
 
 /**
@@ -361,6 +361,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'component' => 'CiviCase',
           'html' => [
             'label' => ts("Case"),
           ],
index 9b8e55b3133235ea1da961e8d490105a777409dd..9151dc12e500e6be7013be4b712eff12e981d2a9 100644 (file)
   <field>
     <name>case_id</name>
     <type>int unsigned</type>
+    <component>CiviCase</component>
     <title>Case ID</title>
     <default>NULL</default>
     <comment>FK to civicrm_case</comment>