'Attachment',
// pseudo-entity; testUpdateSingleValueAlter doesn't introspect properly on it. Multiple magic fields
'Mailing',
- 'MailingGroup',
- 'Address',
'MailingEventUnsubscribe',
'MailingEventSubscribe',
'Constant',
'Location',
'Profile',
'CustomValue',
- 'SurveyRespondant',
- 'UFMatch',
'UFJoin',
'UFField',
- 'OptionValue',
'Relationship',
'RelationshipType',
'Note',
- 'OptionGroup',
'Membership',
'Group',
'File',
'MembershipPayment',
'Participant',
'LineItem',
- 'PledgePayment',
'ContributionPage',
'Phone',
'PaymentProcessor',
'Address' => array(
'cant_update' => array(
'state_province_id', //issues with country id - need to ensure same country
+ 'world_region',
'master_id', //creates relationship
),
- 'cant_return' => array(),
+ 'cant_return' => ['street_parsing', 'skip_geocode', 'fix_address'],
),
'Batch' => array(
'cant_update' => array(
'entity_id',
),
),
+ 'MailingJob' => ['cant_update' => ['parent_id']],
'ContributionSoft' => array(
'cant_update' => array(
// can't be changed through api
$entity2 = $getEntities['values'][1];
$this->deletableTestObjects[$baoString][] = $entity['id'];
$this->deletableTestObjects[$baoString][] = $entity2['id'];
+ // Skip these fields that we never really expect to update well.
+ $genericFieldsToSkip = ['currency', 'id', strtolower($entityName) . '_id', 'is_primary'];
foreach ($fields as $field => $specs) {
$resetFKTo = NULL;
$fieldName = $field;
- if ($field == 'currency' || $field == 'id' || $field == strtolower($entityName) . '_id'
+
+ if (in_array($field, $genericFieldsToSkip)
|| in_array($field, $entityValuesThatDoNotWork)
) {
//@todo id & entity_id are correct but we should fix currency & frequency_day