test fix for sku variant values

This commit is contained in:
2025-09-10 22:09:15 -07:00
parent 71c038a9a0
commit 4d98343653

View File

@@ -65,6 +65,14 @@ class ProductSkusTable extends Table
'foreignKey' => 'product_id',
'joinType' => 'INNER',
]);
$this->hasMany('ProductSkuVariantValues', [
'foreignKey' => 'product_sku_id',
'className' => 'CakeProducts.ProductSkuVariantValues',
'saveStrategy' => 'replace',
'dependent' => true,
'cascadeCallbacks' => true,
]);
}
/**