From f72be46d30f9d53c90284bcc5f7c7c4505149cb9 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 17 Feb 2015 12:13:57 +0530 Subject: [PATCH] added doc --- api/v3/Relationship.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/v3/Relationship.php b/api/v3/Relationship.php index fcaed329c4..a5845090e8 100644 --- a/api/v3/Relationship.php +++ b/api/v3/Relationship.php @@ -147,6 +147,15 @@ function _civicrm_api3_handle_relationship_type(&$params) { } } +/** + * Hack to ensure inherited membership got created/deleted on + * relationship add/delete respectively. + * + * @param array $params + * Array per getfields metadata. + * + * @return array + */ function civicrm_api3_relationship_setvalue($params) { require_once 'api/v3/Generic/Setvalue.php'; $result = civicrm_api3_generic_setValue(array("entity" => 'Relationship', 'params' => $params)); -- 2.25.1