belongs to many external catalogs & catalogs

This commit is contained in:
2025-03-30 22:43:04 -07:00
parent 3a98baae7c
commit b627550dd9
7 changed files with 67 additions and 17 deletions

View File

@@ -9,14 +9,12 @@ use Cake\ORM\Entity;
* ExternalProductCatalog Entity
*
* @property int $id
* @property string $product_catalog_id
* @property string $base_url
* @property string $api_url
* @property \Cake\I18n\DateTime $created
* @property \Cake\I18n\DateTime|null $deleted
* @property bool $enabled
*
* @property \CakeProducts\Model\Entity\ProductCatalog $product_catalog
* @property \CakeProducts\Model\Entity\ProductCatalog[] $product_catalogs
*/
class ExternalProductCatalog extends Entity
{
@@ -30,12 +28,11 @@ class ExternalProductCatalog extends Entity
* @var array<string, bool>
*/
protected array $_accessible = [
'product_catalog_id' => true,
'base_url' => true,
'api_url' => true,
'created' => true,
'deleted' => true,
'enabled' => true,
'product_catalog' => true,
'product_catalogs' => true,
];
}

View File

@@ -13,8 +13,8 @@ use Cake\ORM\Entity;
* @property string|null $catalog_description
* @property bool $enabled
*
* @property \CakeProducts\Model\Entity\ProductCategory[] $product_categories
* @property \CakeProducts\Model\Entity\ExternalProductCatalog[] $external_product_catalogs
* @property ProductCategory[] $product_categories
* @property ExternalProductCatalog[] $external_product_catalogs
*/
class ProductCatalog extends Entity
{