wip product category variants
This commit is contained in:
41
src/Model/Entity/ProductCategoryVariant.php
Normal file
41
src/Model/Entity/ProductCategoryVariant.php
Normal 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,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user