From e528642c9c6bd4c0c8f02500b5c13498cb859a6b Mon Sep 17 00:00:00 2001 From: fomichev Date: Mon, 25 Nov 2024 12:57:40 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=B8=D1=87=D0=BD=D1=8B?= =?utf8?q?=D0=B9=20=D0=BA=D0=BB=D1=8E=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/ProductsClass.php | 5 +++++ 1 file changed, 5 insertions(+) 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']; + } } -- 2.39.5