entities update label related entities better
This commit is contained in:
parent
4d98343653
commit
c061bd1133
|
@ -35,6 +35,8 @@ class ExternalProductCatalog extends Entity
|
|||
'created' => true,
|
||||
'deleted' => true,
|
||||
'enabled' => true,
|
||||
|
||||
// entities
|
||||
'external_product_catalogs_product_catalogs' => true,
|
||||
];
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ class ExternalProductCatalogsProductCatalog extends Entity
|
|||
'created' => true,
|
||||
'enabled' => true,
|
||||
'deleted' => true,
|
||||
|
||||
// entities
|
||||
'external_product_catalog' => true,
|
||||
'product_catalog' => true,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -34,6 +34,7 @@ class ProductCatalog extends Entity
|
|||
'catalog_description' => true,
|
||||
'enabled' => true,
|
||||
'deleted' => true,
|
||||
|
||||
// entities
|
||||
'product_categories' => true,
|
||||
'external_product_catalogs' => true,
|
||||
|
|
|
@ -48,6 +48,7 @@ class ProductCategory extends Entity
|
|||
'rght' => true,
|
||||
'enabled' => true,
|
||||
'deleted' => true,
|
||||
|
||||
// entities
|
||||
'product_catalog' => true,
|
||||
'parent_product_category' => true,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -35,6 +35,7 @@ class ProductCategoryAttributeOption extends Entity
|
|||
'attribute_label' => true,
|
||||
'enabled' => true,
|
||||
'deleted' => true,
|
||||
|
||||
// entities
|
||||
'product_category_attribute' => true,
|
||||
];
|
||||
|
|
|
@ -34,6 +34,7 @@ class ProductCategoryVariantOption extends Entity
|
|||
'created' => true,
|
||||
'modified' => true,
|
||||
'deleted' => true,
|
||||
|
||||
// entities
|
||||
'product_category_variant' => false,
|
||||
];
|
||||
|
|
|
@ -44,6 +44,8 @@ class ProductPhoto extends Entity
|
|||
'created' => true,
|
||||
'modified' => true,
|
||||
'deleted' => true,
|
||||
|
||||
|
||||
'product' => true,
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue