*
* Generated from xml/schema/CRM/ACL/ACL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cccf24b98d7147b2f5e237fcb0a54295)
+ * (GenCodeChecksum:56266204b43a487af7bf9963d23e0556)
*/
/**
],
'pseudoconstant' => [
'callback' => 'CRM_ACL_BAO_ACL::getObjectIdOptions',
- 'prefetch' => 'false',
+ 'prefetch' => 'disabled',
],
'add' => '1.6',
],
*
* Generated from xml/schema/CRM/Activity/Activity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5e64c1c4489e9c640f15d3a4877f7331)
+ * (GenCodeChecksum:ffa034666119a99fd35c5cf8955b8ecc)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5d72f04bf39ff20651ca6e1f59a3fd26)
+ * (GenCodeChecksum:a33ba39795de9f821cfb90cbe83db039)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.3',
],
*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:79c05054f18c94059ec35314ea6bbef6)
+ * (GenCodeChecksum:189e49f95be8623d4a98ab881ab8f5c6)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.3',
],
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:34853e01e303b4fe9111665cc7eb0fb5)
+ * (GenCodeChecksum:81bebe4ba76713e7fb6a39e7710634a4)
*/
/**
'keyColumn' => 'id',
'labelColumn' => 'title',
'nameColumn' => 'name',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '2.1',
],
'keyColumn' => 'id',
'labelColumn' => 'title',
'nameColumn' => 'name',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'readonly' => TRUE,
'add' => '2.1',
*
* Generated from xml/schema/CRM/Contribute/Contribution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4816aa376fc64fa748237d9eb9b68e01)
+ * (GenCodeChecksum:3b056f918193848259b0f2c40a06626c)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Contribute/ContributionPage.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7d36798b74d9cf8912d4b23b5abe2fc8)
+ * (GenCodeChecksum:765f5bf08dbacf12c3d292837d718c39)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f633ecacb25c131d5a07f8c30a169204)
+ * (GenCodeChecksum:d12951f50f11d6868ebb04fe6f3d9707)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '4.1',
],
*
* Generated from xml/schema/CRM/Core/ActionSchedule.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:32b6b57d782a63565e7b0f17cf53b86c)
+ * (GenCodeChecksum:38a9760142f9745025ef828989f73eec)
*/
/**
'table' => 'civicrm_group',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:de7f278485ab58cbd37475fd20b4246d)
+ * (GenCodeChecksum:bb7ac64bd8f09b5afb145f09baf9f08d)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Event/Participant.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2cc6fce620624d08af9f5f0739a81392)
+ * (GenCodeChecksum:3faebf0fa49dd7b3bf527bd082dd1fb7)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
$comparisonValue = $this->getComparisonValue($importedValue);
return $options[$comparisonValue] ?? 'invalid_import_value';
}
- if (!empty($fieldMetadata['FKClassName']) || !empty($fieldMetadata['pseudoconstant']['prefetch'])) {
+ if (!empty($fieldMetadata['FKClassName']) || ($fieldMetadata['pseudoconstant']['prefetch'] ?? NULL) === 'disabled') {
// @todo - make this generic - for fields where getOptions doesn't fetch
// getOptions does not retrieve these fields with high potential results
if ($fieldName === 'event_id') {
*
* Generated from xml/schema/CRM/Mailing/Mailing.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b6497d273cd5ec8c044a5b60c6cd5fea)
+ * (GenCodeChecksum:7370dea62ce328244525bac141d7fb62)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Member/Membership.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:231656abeadb1c357ccd404b2c02b495)
+ * (GenCodeChecksum:607cc8bc4dd07d1a87529f923a421937)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
*
* Generated from xml/schema/CRM/Pledge/Pledge.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5a6d7ca8c7749e190b667bf47b1d024a)
+ * (GenCodeChecksum:de226da85d80eda7f8ffef798215ad2a)
*/
/**
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
- 'prefetch' => 'FALSE',
+ 'prefetch' => 'disabled',
],
'add' => '3.4',
],
$field->setLabel($data['html']['label'] ?? NULL);
$field->setLocalizable($data['localizable'] ?? FALSE);
if (!empty($data['pseudoconstant'])) {
- // Do not load options if 'prefetch' is explicitly FALSE
- if (!isset($data['pseudoconstant']['prefetch']) || $data['pseudoconstant']['prefetch'] === FALSE) {
+ // Do not load options if 'prefetch' is disabled
+ if (($data['pseudoconstant']['prefetch'] ?? NULL) !== 'disabled') {
$field->setOptionsCallback([__CLASS__, 'getOptions']);
}
// These suffixes are always supported if a field has options
</html>
<pseudoconstant>
<callback>CRM_ACL_BAO_ACL::getObjectIdOptions</callback>
- <prefetch>false</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<field>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<keyColumn>id</keyColumn>
<nameColumn>name</nameColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
<html>
<type>EntityRef</type>
<keyColumn>id</keyColumn>
<nameColumn>name</nameColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
<html>
<type>EntityRef</type>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
<html>
<type>EntityRef</type>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_group</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
<html>
<type>EntityRef</type>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>
<table>civicrm_campaign</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
- <prefetch>FALSE</prefetch>
+ <prefetch>disabled</prefetch>
</pseudoconstant>
</field>
<foreignKey>