unique rules, allow product id to be null in product photos

This commit is contained in:
2025-11-01 23:16:59 -07:00
parent 2041fc78d3
commit d239a98e8e
4 changed files with 31 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ use Cake\ORM\Entity;
* ProductPhoto Entity
*
* @property string $id
* @property string $product_id
* @property string|null $product_id
* @property string|null $product_category_id
* @property string|null $product_sku_id
* @property string $photo_dir
@@ -55,6 +55,8 @@ class ProductPhoto extends Entity
'deleted' => true,
// entities
'product' => true,
'product' => false,
'product_sku' => false,
'product_category' => false,
];
}