diff --git a/src/Entity/PurchasedProduct.php b/src/Entity/PurchasedProduct.php index 1564f9aa..73f8f739 100755 --- a/src/Entity/PurchasedProduct.php +++ b/src/Entity/PurchasedProduct.php @@ -158,6 +158,9 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $definitions[$field_name]->setDisplayConfigurable('form', FALSE); } + // Set the target_type for ratePlan base field. + $definitions['ratePlan']->setSetting('target_type', 'rate_plan'); + return $definitions; }