product variants table split off from category variants table, variant values table updated to reflect

This commit is contained in:
bs
2025-10-03 02:16:24 -07:00
parent d49a8784e6
commit 49912abd3a
21 changed files with 477 additions and 46 deletions
+2 -2
View File
@@ -69,9 +69,9 @@ class ProductsTable extends Table
'cascadeCallbacks' => true,
]);
$this->hasMany('ProductCategoryVariants', [
$this->hasMany('ProductVariants', [
'foreignKey' => 'product_id',
'className' => 'CakeProducts.ProductCategoryVariants',
'className' => 'CakeProducts.ProductVariants',
'dependent' => true,
'cascadeCallbacks' => true,
]);