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,
|
'created' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
||||||
|
// entities
|
||||||
'external_product_catalogs_product_catalogs' => true,
|
'external_product_catalogs_product_catalogs' => true,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ class ExternalProductCatalogsProductCatalog extends Entity
|
||||||
'created' => true,
|
'created' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'external_product_catalog' => true,
|
'external_product_catalog' => true,
|
||||||
'product_catalog' => true,
|
'product_catalog' => true,
|
||||||
|
|
|
@ -37,6 +37,7 @@ class Product extends Entity
|
||||||
'product_category_id' => true,
|
'product_category_id' => true,
|
||||||
'product_type_id' => true,
|
'product_type_id' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_category' => false,
|
'product_category' => false,
|
||||||
'product_attributes' => true,
|
'product_attributes' => true,
|
||||||
|
|
|
@ -37,6 +37,7 @@ class ProductAttribute extends Entity
|
||||||
'attribute_value' => true,
|
'attribute_value' => true,
|
||||||
'product_category_attribute_option_id' => true,
|
'product_category_attribute_option_id' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product' => false,
|
'product' => false,
|
||||||
'product_category_attribute' => false,
|
'product_category_attribute' => false,
|
||||||
|
|
|
@ -34,6 +34,7 @@ class ProductCatalog extends Entity
|
||||||
'catalog_description' => true,
|
'catalog_description' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_categories' => true,
|
'product_categories' => true,
|
||||||
'external_product_catalogs' => true,
|
'external_product_catalogs' => true,
|
||||||
|
|
|
@ -48,6 +48,7 @@ class ProductCategory extends Entity
|
||||||
'rght' => true,
|
'rght' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_catalog' => true,
|
'product_catalog' => true,
|
||||||
'parent_product_category' => true,
|
'parent_product_category' => true,
|
||||||
|
|
|
@ -36,6 +36,7 @@ class ProductCategoryAttribute extends Entity
|
||||||
'attribute_type_id' => true,
|
'attribute_type_id' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_category' => true,
|
'product_category' => true,
|
||||||
'product_category_attribute_options' => true,
|
'product_category_attribute_options' => true,
|
||||||
|
|
|
@ -35,6 +35,7 @@ class ProductCategoryAttributeOption extends Entity
|
||||||
'attribute_label' => true,
|
'attribute_label' => true,
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_category_attribute' => true,
|
'product_category_attribute' => true,
|
||||||
];
|
];
|
||||||
|
|
|
@ -34,6 +34,7 @@ class ProductCategoryVariantOption extends Entity
|
||||||
'created' => true,
|
'created' => true,
|
||||||
'modified' => true,
|
'modified' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
// entities
|
// entities
|
||||||
'product_category_variant' => false,
|
'product_category_variant' => false,
|
||||||
];
|
];
|
||||||
|
|
|
@ -44,6 +44,8 @@ class ProductPhoto extends Entity
|
||||||
'created' => true,
|
'created' => true,
|
||||||
'modified' => true,
|
'modified' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
|
|
||||||
'product' => true,
|
'product' => true,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace CakeProducts\Model\Entity;
|
namespace CakeProducts\Model\Entity;
|
||||||
|
|
||||||
|
use Cake\I18n\DateTime;
|
||||||
use Cake\ORM\Entity;
|
use Cake\ORM\Entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,11 +15,12 @@ use Cake\ORM\Entity;
|
||||||
* @property string|null $barcode
|
* @property string|null $barcode
|
||||||
* @property string|null $price
|
* @property string|null $price
|
||||||
* @property string|null $cost
|
* @property string|null $cost
|
||||||
* @property \Cake\I18n\DateTime $created
|
* @property DateTime $created
|
||||||
* @property \Cake\I18n\DateTime|null $modified
|
* @property DateTime|null $modified
|
||||||
* @property \Cake\I18n\DateTime|null $deleted
|
* @property DateTime|null $deleted
|
||||||
*
|
*
|
||||||
* @property \App\Model\Entity\Product $product
|
* @property Product $product
|
||||||
|
* @property ProductSkuVariantValue[] $product_sku_variant_values
|
||||||
*/
|
*/
|
||||||
class ProductSku extends Entity
|
class ProductSku extends Entity
|
||||||
{
|
{
|
||||||
|
@ -40,6 +42,9 @@ class ProductSku extends Entity
|
||||||
'created' => true,
|
'created' => true,
|
||||||
'modified' => true,
|
'modified' => true,
|
||||||
'deleted' => true,
|
'deleted' => true,
|
||||||
|
|
||||||
|
// entities
|
||||||
'product' => false,
|
'product' => false,
|
||||||
|
'product_sku_variant_values' => false,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,8 @@ class ProductSkuVariantValue extends Entity
|
||||||
'product_sku_id' => true,
|
'product_sku_id' => true,
|
||||||
'product_category_variant_id' => true,
|
'product_category_variant_id' => true,
|
||||||
'product_category_variant_option_id' => true,
|
'product_category_variant_option_id' => true,
|
||||||
|
|
||||||
|
// entities
|
||||||
'product_skus' => true,
|
'product_skus' => true,
|
||||||
'product_category_variant' => true,
|
'product_category_variant' => true,
|
||||||
'product_category_variant_option' => true,
|
'product_category_variant_option' => true,
|
||||||
|
|
Loading…
Reference in New Issue