entities update label related entities better
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user