4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
23 * RelationshipCache - readonly table to facilitate joining and finding contacts by relationship.
25 * @see \Civi\Api4\Relationship
26 * @bridge near_contact_id far_contact_id
27 * @ui_join_filters near_relation
30 class RelationshipCache
extends Generic\AbstractEntity
{
31 use Generic\Traits\EntityBridge
;
34 * @param bool $checkPermissions
35 * @return Generic\DAOGetAction
37 public static function get($checkPermissions = TRUE) {
38 return (new Generic\
DAOGetAction(static::class, __FUNCTION__
))
39 ->setCheckPermissions($checkPermissions);
43 * @param bool $checkPermissions
44 * @return Generic\DAOGetFieldsAction
46 public static function getFields($checkPermissions = TRUE) {
47 return (new Generic\
DAOGetFieldsAction(static::class, __FUNCTION__
))
48 ->setCheckPermissions($checkPermissions);