entities update label related entities better

This commit is contained in:
Brandon Shipley 2025-09-10 22:19:27 -07:00
parent 4d98343653
commit c061bd1133
Signed by: bmfs
GPG Key ID: 14E38571D8BB0DE4
12 changed files with 23 additions and 4 deletions

View File

@ -35,6 +35,8 @@ class ExternalProductCatalog extends Entity
'created' => true,
'deleted' => true,
'enabled' => true,
// entities
'external_product_catalogs_product_catalogs' => true,
];
}

View File

@ -36,6 +36,7 @@ class ExternalProductCatalogsProductCatalog extends Entity
'created' => true,
'enabled' => true,
'deleted' => true,
// entities
'external_product_catalog' => true,
'product_catalog' => true,

View File

@ -37,6 +37,7 @@ class Product extends Entity
'product_category_id' => true,
'product_type_id' => true,
'deleted' => true,
// entities
'product_category' => false,
'product_attributes' => true,

View File

@ -37,6 +37,7 @@ class ProductAttribute extends Entity
'attribute_value' => true,
'product_category_attribute_option_id' => true,
'deleted' => true,
// entities
'product' => false,
'product_category_attribute' => false,

View File

@ -34,6 +34,7 @@ class ProductCatalog extends Entity
'catalog_description' => true,
'enabled' => true,
'deleted' => true,
// entities
'product_categories' => true,
'external_product_catalogs' => true,

View File

@ -48,6 +48,7 @@ class ProductCategory extends Entity
'rght' => true,
'enabled' => true,
'deleted' => true,
// entities
'product_catalog' => true,
'parent_product_category' => true,

View File

@ -36,6 +36,7 @@ class ProductCategoryAttribute extends Entity
'attribute_type_id' => true,
'enabled' => true,
'deleted' => true,
// entities
'product_category' => true,
'product_category_attribute_options' => true,

View File

@ -35,6 +35,7 @@ class ProductCategoryAttributeOption extends Entity
'attribute_label' => true,
'enabled' => true,
'deleted' => true,
// entities
'product_category_attribute' => true,
];

View File

@ -34,6 +34,7 @@ class ProductCategoryVariantOption extends Entity
'created' => true,
'modified' => true,
'deleted' => true,
// entities
'product_category_variant' => false,
];

View File

@ -44,6 +44,8 @@ class ProductPhoto extends Entity
'created' => true,
'modified' => true,
'deleted' => true,
'product' => true,
];
}

View File

@ -3,6 +3,7 @@ declare(strict_types=1);
namespace CakeProducts\Model\Entity;
use Cake\I18n\DateTime;
use Cake\ORM\Entity;
/**
@ -14,11 +15,12 @@ use Cake\ORM\Entity;
* @property string|null $barcode
* @property string|null $price
* @property string|null $cost
* @property \Cake\I18n\DateTime $created
* @property \Cake\I18n\DateTime|null $modified
* @property \Cake\I18n\DateTime|null $deleted
* @property DateTime $created
* @property DateTime|null $modified
* @property DateTime|null $deleted
*
* @property \App\Model\Entity\Product $product
* @property Product $product
* @property ProductSkuVariantValue[] $product_sku_variant_values
*/
class ProductSku extends Entity
{
@ -40,6 +42,9 @@ class ProductSku extends Entity
'created' => true,
'modified' => true,
'deleted' => true,
// entities
'product' => false,
'product_sku_variant_values' => false,
];
}

View File

@ -32,6 +32,8 @@ class ProductSkuVariantValue extends Entity
'product_sku_id' => true,
'product_category_variant_id' => true,
'product_category_variant_option_id' => true,
// entities
'product_skus' => true,
'product_category_variant' => true,
'product_category_variant_option' => true,