fix sku variant values association on variants table
git st
This commit is contained in:
@@ -62,9 +62,11 @@ class ProductVariantsTable extends Table
|
||||
'joinType' => 'INNER',
|
||||
]);
|
||||
|
||||
$this->hasMany('ProductCategoryVariantOptions', [
|
||||
'className' => 'CakeProducts.Products',
|
||||
'foreignKey' => 'product_category_variant_id',
|
||||
$this->hasMany('ProductSkuVariantValues', [
|
||||
'className' => 'CakeProducts.ProductSkuVariantValues',
|
||||
'foreignKey' => 'product_variant_id',
|
||||
'dependent' => true,
|
||||
'cascadeCallbacks' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user