has many sku variant values on category variants table

This commit is contained in:
2025-09-23 02:09:17 -07:00
parent 5b38de39fc
commit fd0f9efa28

View File

@@ -71,6 +71,13 @@ class ProductCategoryVariantsTable extends Table
'dependent' => true, 'dependent' => true,
'cascadeCallbacks' => true, 'cascadeCallbacks' => true,
]); ]);
$this->hasMany('ProductSkuVariantValues', [
'foreignKey' => 'product_category_variant_id',
'className' => 'CakeProducts.ProductSkuVariantValues',
'dependent' => true,
'cascadeCallbacks' => true,
]);
} }
/** /**