SearchKit - Enable search for relationships as base entity
authorColeman Watts <coleman@civicrm.org>
Tue, 8 Jun 2021 16:33:00 +0000 (12:33 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 8 Jun 2021 18:56:44 +0000 (14:56 -0400)
commitc507688988cc0c17222f8cf8ab484caae3b0ec7b
tree90c84b753308bbcc9d9c435acfbf8e704b349015
parentc290e4062bb9517566bba38de2ac352a4cfe051e
SearchKit - Enable search for relationships as base entity

This makes it possible to use a bridge entity for the base of a search
(only if it is annotated @searchable primary|secondary)

It also ensures that fields needed for links are available in search displays
(previously it ensured ID was returned but some links require other fields as well)
18 files changed:
CRM/Contact/DAO/Relationship.php
CRM/Contact/DAO/RelationshipCache.php
Civi/Api4/ActivityContact.php
Civi/Api4/CaseActivity.php
Civi/Api4/CaseContact.php
Civi/Api4/DashboardContact.php
Civi/Api4/Entity.php
Civi/Api4/EntityFinancialAccount.php
Civi/Api4/EntityFinancialTrxn.php
Civi/Api4/EntityTag.php
Civi/Api4/GroupContact.php
Civi/Api4/RelationshipCache.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php
ext/search_kit/Civi/Search/Admin.php
ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js
tests/phpunit/api/v4/Entity/ConformanceTest.php
xml/schema/Contact/Relationship.xml
xml/schema/Contact/RelationshipCache.xml