APIv4 - Enable getFields to report dynamic FKs if a value is supplied for the entity...
authorColeman Watts <coleman@civicrm.org>
Thu, 13 Oct 2022 14:14:42 +0000 (15:14 +0100)
committerColeman Watts <coleman@civicrm.org>
Sat, 15 Oct 2022 00:35:03 +0000 (20:35 -0400)
commitd574bb2cd96911ccdb88f82b812716746d45d344
treeb141225cd76b676f33e75618d3adf93be839326a
parente0c723c3a9b958c0f715e9314b408582d37ef87e
APIv4 - Enable getFields to report dynamic FKs if a value is supplied for the entity type

E.g. many tables have a DFK with a pair of `entity_table` and `entity_id` columns;
If you supply a value for `entity_table`, then getFields will output the correct `fk_entity` for the `entity_id` field.

This allows the "Assigned Financial Accounts" display to add the financial type in the page title.
Civi/Api4/Service/Spec/SpecGatherer.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
tests/phpunit/api/v4/Action/GetFieldsTest.php