]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix sales
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 16 May 2024 10:54:41 +0000 (13:54 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 16 May 2024 10:54:41 +0000 (13:54 +0300)
erp24/records/Sales.php

index 5e7b5a6e06b276f79024f1957c1cc8d9c805c2ad..e6776d52fcf8f415cf9e960e4f65deba21fe873a 100755 (executable)
@@ -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