add soft delete via muffin/trash to all product related tables

This commit is contained in:
2025-04-08 01:30:40 -07:00
parent 013bec1b54
commit cf7c67763c
33 changed files with 188 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ declare(strict_types=1);
namespace CakeProducts\Model\Entity;
use Cake\I18n\DateTime;
use Cake\ORM\Entity;
/**
@@ -12,6 +13,7 @@ use Cake\ORM\Entity;
* @property string $name
* @property string $product_category_id
* @property \CakeProducts\Model\Enum\ProductProductTypeId $product_type_id
* @property DateTime|null $deleted
*
* @property \CakeProducts\Model\Entity\ProductCategory $product_category
* @property \CakeProducts\Model\Entity\ProductAttribute[] $product_attributes
@@ -31,7 +33,9 @@ class Product extends Entity
'name' => true,
'product_category_id' => true,
'product_type_id' => true,
'product_category' => true,
'deleted' => true,
// entities
'product_category' => false,
'product_attributes' => true,
];
}