DynamicFKAccessTrait - Emit explicit error-message for invalid table references
authorTim Otten <totten@civicrm.org>
Fri, 11 Jun 2021 23:44:06 +0000 (16:44 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 11 Jun 2021 23:56:00 +0000 (16:56 -0700)
commit997e2e68599e7801f04dff8430f0ddc208422ea7
tree6ff9f5b79bb6769ebc310f719aa502273c907d01
parent236007df15c5e3c65866b9cdd53fcd7593bb82c8
DynamicFKAccessTrait - Emit explicit error-message for invalid table references

Use-Case: You create a dynamic FK with a reference to an invalid table.

Before: Returns an API error/exception about type-matching (string vs null)

After: Returns an API error/exception about the invalid reference
CRM/Core/DynamicFKAccessTrait.php