add the contain for product skus on products
This commit is contained in:
@@ -76,12 +76,12 @@ class ProductsTable extends Table
|
||||
'cascadeCallbacks' => true,
|
||||
]);
|
||||
|
||||
// $this->hasMany('ProductSkus', [
|
||||
// 'foreignKey' => 'product_id',
|
||||
// 'className' => 'CakeProducts.ProductSkus',
|
||||
// 'dependent' => true,
|
||||
// 'cascadeCallbacks' => true,
|
||||
// ]);
|
||||
$this->hasMany('ProductSkus', [
|
||||
'foreignKey' => 'product_id',
|
||||
'className' => 'CakeProducts.ProductSkus',
|
||||
'dependent' => true,
|
||||
'cascadeCallbacks' => true,
|
||||
]);
|
||||
|
||||
$this->getSchema()->setColumnType('product_type_id', EnumType::from(ProductProductTypeId::class));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user