Commit a4de14cbdcb41a6c9dceacbc67dcd0c78f1087ae

Authored by Administrator
1 parent 3ad639d1

14.06.16

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
common/modules/product/models/ProductStock.php
... ... @@ -75,4 +75,10 @@ class ProductStock extends \yii\db\ActiveRecord
75 75 {
76 76 return $this->hasOne(Stock::className(), ['stock_id' => 'stock_id']);
77 77 }
  78 +
  79 +
  80 + public static function primaryKey()
  81 + {
  82 + return ["product_id"];
  83 + }
78 84 }
... ...