test fix for sku variant values
This commit is contained in:
@@ -65,6 +65,14 @@ class ProductSkusTable extends Table
|
|||||||
'foreignKey' => 'product_id',
|
'foreignKey' => 'product_id',
|
||||||
'joinType' => 'INNER',
|
'joinType' => 'INNER',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$this->hasMany('ProductSkuVariantValues', [
|
||||||
|
'foreignKey' => 'product_sku_id',
|
||||||
|
'className' => 'CakeProducts.ProductSkuVariantValues',
|
||||||
|
'saveStrategy' => 'replace',
|
||||||
|
'dependent' => true,
|
||||||
|
'cascadeCallbacks' => true,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user