product sku property name on sku variant values
This commit is contained in:
parent
44130c0cd2
commit
8e2165d991
|
@ -34,7 +34,7 @@ class ProductSkuVariantValue extends Entity
|
||||||
'product_category_variant_option_id' => true,
|
'product_category_variant_option_id' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_skus' => true,
|
'product_sku' => true,
|
||||||
'product_variant' => true,
|
'product_variant' => true,
|
||||||
'product_category_variant_option' => true,
|
'product_category_variant_option' => true,
|
||||||
];
|
];
|
||||||
|
|
|
@ -54,6 +54,7 @@ class ProductSkuVariantValuesTable extends Table
|
||||||
$this->belongsTo('ProductSkus', [
|
$this->belongsTo('ProductSkus', [
|
||||||
'className' => 'CakeProducts.ProductSkus',
|
'className' => 'CakeProducts.ProductSkus',
|
||||||
'foreignKey' => 'product_sku_id',
|
'foreignKey' => 'product_sku_id',
|
||||||
|
'propertyName' => 'product_sku',
|
||||||
'joinType' => 'INNER',
|
'joinType' => 'INNER',
|
||||||
]);
|
]);
|
||||||
$this->belongsTo('ProductVariants', [
|
$this->belongsTo('ProductVariants', [
|
||||||
|
|
Loading…
Reference in New Issue