cer_commerce.module in Corresponding Entity References 7.3
File
extensions/cer_commerce/cer_commerce.module
View source
<?php
function cer_commerce_cer_insert(CerPreset $preset) {
if ($preset->wrapper->cer_right->chain
->value()
->end() instanceof CerCommerceProductReferenceField) {
$preset->wrapper->cer_bidirectional
->set(FALSE);
$preset->is_new = FALSE;
$preset
->save();
drupal_set_message(t('In order to prevent a race condition, bidirectionality has been disabled for this preset.'), 'warning');
}
}