default sku boolean to product skus table
This commit is contained in:
@@ -97,6 +97,13 @@ class ProductsTable extends Table
|
||||
'dependent' => true,
|
||||
]);
|
||||
|
||||
$this->hasOne('DefaultProductSkus', [
|
||||
'foreignKey' => 'product_id',
|
||||
'conditions' => ['PrimaryProductSkus.default_sku' => true],
|
||||
'className' => 'CakeProducts.ProductSkus',
|
||||
'dependent' => true,
|
||||
]);
|
||||
|
||||
$this->getSchema()->setColumnType('product_type_id', EnumType::from(ProductProductTypeId::class));
|
||||
|
||||
$this->addBehavior('Muffin/Trash.Trash');
|
||||
|
||||
Reference in New Issue
Block a user