remove product id from product category variants table
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user