product sku property name on sku variant values

This commit is contained in:
2025-10-07 01:21:04 -07:00
parent 44130c0cd2
commit 8e2165d991
2 changed files with 2 additions and 1 deletions

View File

@@ -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,
]; ];

View File

@@ -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', [