<?php
-
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
-
namespace Civi\Api4;
/**
* RelationshipCache - readonly table to facilitate joining and finding contacts by relationship.
*
+ * @searchable secondary
* @see \Civi\Api4\Relationship
- * @bridge near_contact_id far_contact_id
* @ui_join_filters near_relation
+ * @since 5.29
* @package Civi\Api4
*/
class RelationshipCache extends Generic\AbstractEntity {
->setCheckPermissions($checkPermissions);
}
+ /**
+ * @return array
+ */
+ public static function getInfo() {
+ $info = parent::getInfo();
+ $info['bridge_title'] = ts('Relationship');
+ $info['bridge'] = [
+ 'near_contact_id' => ['description' => ts('One or more contacts with a relationship to this contact')],
+ 'far_contact_id' => ['description' => ts('One or more contacts with a relationship to this contact')],
+ ];
+ return $info;
+ }
+
}