APIv4 - Support pseudoconstant lookups
authorColeman Watts <coleman@civicrm.org>
Mon, 20 Apr 2020 13:00:07 +0000 (09:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 23 Apr 2020 00:49:10 +0000 (20:49 -0400)
commit961e974cb7faf9f3d43482747b32cb94661f21a9
tree308bad558e468104ed583a943d039d76215a4a1c
parent87636aebcd91867da56659d926bce64e91d404a0
APIv4 - Support pseudoconstant lookups

Appending a suffix to a field name e.g. location_type_id:name or gender_id:label
will automatically lookup values from field option lists.
17 files changed:
Civi/Api4/Generic/AbstractAction.php
Civi/Api4/Generic/AbstractGetAction.php
Civi/Api4/Generic/BasicCreateAction.php
Civi/Api4/Generic/BasicGetAction.php
Civi/Api4/Generic/BasicSaveAction.php
Civi/Api4/Generic/BasicUpdateAction.php
Civi/Api4/Generic/DAOCreateAction.php
Civi/Api4/Generic/DAOSaveAction.php
Civi/Api4/Generic/DAOUpdateAction.php
Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php
Civi/Api4/Generic/Traits/DAOActionTrait.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Utils/FormattingUtil.php
tests/phpunit/api/v4/Action/BasicActionsTest.php
tests/phpunit/api/v4/Action/CustomValueTest.php
tests/phpunit/api/v4/Action/PseudoconstantTest.php [new file with mode: 0644]
tests/phpunit/api/v4/Mock/Api4/MockBasicEntity.php