From: Alexander Smirnov Date: Thu, 16 May 2024 10:54:41 +0000 (+0300) Subject: fix sales X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b34ff1ea86a60cdf44e61680a2130ea0cce59db0;p=yii-erp24%2F.git fix sales --- diff --git a/erp24/records/Sales.php b/erp24/records/Sales.php index 5e7b5a6..e6776d5 100755 --- a/erp24/records/Sales.php +++ b/erp24/records/Sales.php @@ -136,6 +136,6 @@ class Sales extends \yii\db\ActiveRecord } public function getUsers() { - return $this->hasOne(Users::class, [new Expression('phone::varchar(20)') => new Expression('phone::varchar(20)')]); + return $this->hasOne(Users::class, ['phone' => new Expression('phone::varchar(20)')]); } } \ No newline at end of file