APIv4 - Fix multi-record custom entities FK join on entity_id
authorcolemanw <coleman@civicrm.org>
Fri, 17 Nov 2023 00:13:00 +0000 (19:13 -0500)
committercolemanw <coleman@civicrm.org>
Fri, 17 Nov 2023 00:23:22 +0000 (19:23 -0500)
commit85259d6f217d2b35829aa193f0053b2b216f4ccd
treedd92828204dec0e18efb5afca547c94e465fe4d1
parent277fc9ab0d11ade0a8db292937c57fd02eac19f8
APIv4 - Fix multi-record custom entities FK join on entity_id

This join was named contact instead of entity_id. Joins that don't match the field name are deprecated
in APIv4 so the old join has been marked as such. Renaming the join fixes SearchKit ability to join
from a custom entity to the parent record.
Civi/Api4/Action/Entity/GetLinks.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Service/Schema/Joinable/Joinable.php
Civi/Api4/Service/Schema/SchemaMapBuilder.php
tests/phpunit/api/v3/ACLPermissionTest.php