APIv4 - Add 'match' param to save action
authorColeman Watts <coleman@civicrm.org>
Tue, 19 Oct 2021 00:09:52 +0000 (20:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 22 Oct 2021 02:20:10 +0000 (22:20 -0400)
commitdb11224f49b015c1bfc031a0ad87ba7ed1bf499e
treee305192c6ab3e6ca0d01fb35f873adf2df97612d
parent36168ce5723138f272eaa0d81eeea37f7a994d95
APIv4 - Add 'match' param to save action

This works similarly to the 'match' param in v3 `create`,
it checks for records matching the given fields, and will update instead of create
if an existing record is found.
Civi/Api4/Generic/AbstractAction.php
Civi/Api4/Generic/AbstractSaveAction.php
Civi/Api4/Generic/BasicSaveAction.php
Civi/Api4/Generic/DAOSaveAction.php
ang/api4Explorer/Explorer.html
tests/phpunit/api/v4/Action/SaveTest.php [new file with mode: 0644]