CRM-19130 - CRM_Core_BAO_Cache - Do not rely on DAO::fields()
authorTim Otten <totten@civicrm.org>
Fri, 29 Jul 2016 01:13:52 +0000 (18:13 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 29 Jul 2016 02:42:05 +0000 (19:42 -0700)
commit61d2983980382081f6260901eeb59a80c01c8077
treee487b36f7103685201e05fb5b90f046486fa9a14
parent72e4d1c9f67ce0027afe5d43547a8bc6c7459835
CRM-19130 - CRM_Core_BAO_Cache - Do not rely on DAO::fields()

For CRM-19130, we want all calls to `fields()` to be hookable, which means
that `fields()` can only run in a bootstrapped system (where hooks are
reliably working).

This should be *mostly* OK.  However, during bootstrap, we rely on the SQL
cache which means that `CRM_Core_BAO_Cache` must be operational -- even if
`fields()` cannot be used.  Consequently, the DAO-based query-builder cannot
be used.
CRM/Core/BAO/Cache.php