From: Alexander Smirnov Date: Thu, 16 May 2024 10:16:01 +0000 (+0300) Subject: fix X-Git-Tag: 1.1~28^2~2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f2a7fd7c9c67f2f5a669a5ca78b8ff64c6b6f34a;p=erp24_rep%2Fyii-erp24%2F.git fix --- diff --git a/erp24/records/Sales.php b/erp24/records/Sales.php index b30f3bf0..5e7b5a6e 100755 --- a/erp24/records/Sales.php +++ b/erp24/records/Sales.php @@ -4,6 +4,7 @@ namespace yii_app\records; use Yii; use yii\db\ActiveQueryInterface; +use yii\db\Expression; /** * This is the model class for table "sales". @@ -135,6 +136,6 @@ class Sales extends \yii\db\ActiveRecord } public function getUsers() { - return $this->hasOne(Users::class, ['phone::varchar(20)' => 'phone::varchar(20)']); + return $this->hasOne(Users::class, [new Expression('phone::varchar(20)') => new Expression('phone::varchar(20)')]); } } \ No newline at end of file