From 62f37477013d670726ac977268ed2aed1e288a16 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 29 Sep 2022 22:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Traits/HasBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Traits/HasBase.php b/Traits/HasBase.php index 9753b30..e07b672 100644 --- a/Traits/HasBase.php +++ b/Traits/HasBase.php @@ -73,7 +73,7 @@ abstract class HasBase implements \Database\Traits\Relation public function __call($name, $arguments) { if (!method_exists($this, $name)) { - $key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value; + $key = $this->model . '_' . $this->primaryId . '_' . $this->value; var_dump($this->model, $this->primaryId, $this->value); $this->_relation->getQuery(md5($key))->$name(...$arguments); } else {