From d58ca2919b30548c5dcda2c405bcbf86f3c1e91e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 19:40:10 +0800 Subject: [PATCH] modify --- Annotation/Annotation.php | 1 - Database/Base/BaseActiveRecord.php | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 8212a94d..ab963b16 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -54,7 +54,6 @@ class Annotation extends Component public function addRelate(string $class, string $setName, string $method) { $this->_model_relate[$class . '::' . $setName] = $method; - var_dump($this->_model_relate); } diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 3558ee9a..01b30a79 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -850,12 +850,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess public function __get($name): mixed { $value = $this->_attributes[$name] ?? null; + var_dump($value); $loader = Snowflake::app()->getAnnotation(); - - var_dump($value); if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) { - var_dump(get_called_class() . '::' . $method); return $this->{$method}(...[$value]); } if (array_key_exists($name, $this->_attributes)) {