(REF) ActionSchedule - Pass through SQL fields named "tokenContext_*"
authorTim Otten <totten@civicrm.org>
Tue, 10 Aug 2021 05:59:54 +0000 (22:59 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 11 Aug 2021 01:57:05 +0000 (18:57 -0700)
commit3b191d7d7a24835a9cd19de49d6577484d5c4182
treeacd534ada5e71cea09a28103f09dd184b7041ed5
parentc06f174feaa0e82fac89c3709e6fe0ca36f3b9b4
(REF) ActionSchedule - Pass through SQL fields named "tokenContext_*"

This will help us to consolidate the prefetching logic in `CRM_*_Tokens`.

Currently, `CRM_*_Token::alterActionScheduleQuery()` updates the query to select all fields for the entity.
This is regardless of how many fields there are, whether they are needed, etc. This is also prone to naming conflicts.

With this patch, `CRM_*_Token::alterActionScheduleQuery()` only needs to select one field (`tokenContext_fooId`). This
will then propagate to the `TokenProcessor` which can do its own optimized data-loading.
CRM/Core/BAO/ActionSchedule.php