From a4de14cbdcb41a6c9dceacbc67dcd0c78f1087ae Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 17 Jun 2016 16:36:35 +0300 Subject: [PATCH] 14.06.16 --- common/modules/product/models/ProductStock.php | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/common/modules/product/models/ProductStock.php b/common/modules/product/models/ProductStock.php index c667ada..57b1952 100755 --- a/common/modules/product/models/ProductStock.php +++ b/common/modules/product/models/ProductStock.php @@ -75,4 +75,10 @@ class ProductStock extends \yii\db\ActiveRecord { return $this->hasOne(Stock::className(), ['stock_id' => 'stock_id']); } + + + public static function primaryKey() + { + return ["product_id"]; + } } -- libgit2 0.21.4