remove product id from product category variants table

This commit is contained in:
2025-09-21 17:51:54 -07:00
parent 4549f30930
commit 892a85d30a
3 changed files with 30 additions and 43 deletions

View File

@@ -12,11 +12,9 @@ use Cake\ORM\Entity;
* @property string $id
* @property string $name
* @property string|null $product_category_id
* @property string|null $product_id
* @property bool $enabled
*
* @property ProductCategory|EntityInterface $product_category
* @property Product|EntityInterface $product
* @property ProductCategoryVariantOption[]|EntityInterface[] $product_category_variant_options
*/
class ProductCategoryVariant extends Entity
@@ -33,12 +31,10 @@ class ProductCategoryVariant extends Entity
protected array $_accessible = [
'name' => true,
'product_category_id' => true,
'product_id' => true,
'enabled' => true,
// entities
'product_category' => false,
'product' => false,
'product_category_variant_options' => true,
];
}