From 08bff50a26c1bbc9d29c47e5d6575688a25fdb8c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jul 2016 16:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BB=E7=9A=84getAtt?= =?UTF-8?q?r=E5=BC=82=E5=B8=B8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index b311b30c..9e6347fb 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -245,7 +245,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } elseif (array_key_exists($name, $this->data)) { return $this->data[$name]; } else { - throw new InvalidArgumentException('property not exists:' . __CLASS__ . '->' . $name); + throw new InvalidArgumentException('property not exists:' . $this->class . '->' . $name); } } @@ -383,7 +383,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $this->data[$name] = $value; return $value; } else { - throw new InvalidArgumentException('property not exists:' . __CLASS__ . '->' . $name); + throw new InvalidArgumentException('property not exists:' . $this->class . '->' . $name); } } }