add soft delete via muffin/trash to all product related tables
This commit is contained in:
@@ -3,6 +3,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace CakeProducts\Model\Entity;
|
||||
|
||||
use Cake\I18n\DateTime;
|
||||
use Cake\ORM\Entity;
|
||||
|
||||
/**
|
||||
@@ -13,6 +14,7 @@ use Cake\ORM\Entity;
|
||||
* @property string $product_category_attribute_id
|
||||
* @property string|null $attribute_value
|
||||
* @property string|null $product_category_attribute_option_id
|
||||
* @property DateTime|null $deleted
|
||||
*
|
||||
* @property Product $product
|
||||
* @property ProductCategoryAttribute $product_category_attribute
|
||||
@@ -34,6 +36,8 @@ class ProductAttribute extends Entity
|
||||
'product_category_attribute_id' => true,
|
||||
'attribute_value' => true,
|
||||
'product_category_attribute_option_id' => true,
|
||||
'deleted' => true,
|
||||
// entities
|
||||
'product' => false,
|
||||
'product_category_attribute' => false,
|
||||
'product_category_attribute_option' => false,
|
||||
|
||||
Reference in New Issue
Block a user