wip product category variants

This commit is contained in:
2025-06-29 21:52:07 -07:00
parent a01805dc53
commit f61a4161be
12 changed files with 502 additions and 16 deletions

View File

@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
namespace CakeProducts\Model\Entity;
use Cake\ORM\Entity;
/**
* ProductCategoryVariant Entity
*
* @property string $id
* @property string $name
* @property string|null $product_category_id
* @property string|null $product_id
* @property int $attribute_type_id
* @property bool $enabled
*
* @property \App\Model\Entity\ProductCategory $product_category
* @property \App\Model\Entity\Product $product
*/
class ProductCategoryVariant extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array<string, bool>
*/
protected array $_accessible = [
'name' => true,
'product_category_id' => true,
'product_id' => true,
'attribute_type_id' => true,
'enabled' => true,
'product_category' => true,
'product' => true,
];
}