test fixes for product skus add

This commit is contained in:
2025-09-06 01:11:51 -07:00
parent 99f52422c1
commit f3a6384c55
8 changed files with 92 additions and 43 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace CakeProducts\Model\Table;
use Cake\Core\Configure;
use Cake\ORM\Query\SelectQuery;
use CakeProducts\Model\Table\ProductsTable;
use Cake\Datasource\EntityInterface;
use Cake\Datasource\ResultSetInterface;
@@ -60,6 +61,7 @@ class ProductSkusTable extends Table
$this->addBehavior('Timestamp');
$this->belongsTo('Products', [
'className' => 'CakeProducts.Products',
'foreignKey' => 'product_id',
'joinType' => 'INNER',
]);