From: fomichev Date: Mon, 25 Nov 2024 09:57:40 +0000 (+0300) Subject: Первичный ключ X-Git-Tag: 1.7~212^2~10 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e528642c9c6bd4c0c8f02500b5c13498cb859a6b;p=erp24_rep%2Fyii-erp24%2F.git Первичный ключ --- diff --git a/erp24/records/ProductsClass.php b/erp24/records/ProductsClass.php index acb9dd84..e3fa91a9 100755 --- a/erp24/records/ProductsClass.php +++ b/erp24/records/ProductsClass.php @@ -74,4 +74,9 @@ class ProductsClass extends \yii\db\ActiveRecord 'tip' => 'Tip', ]; } + + public static function primaryKey() + { + return ['category_id', 'tip']; + } }