From 47e372c37e07ac9e7c698e396590f2253c6cf59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 15:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/ActiveRecord.php | 2 -- Database/Base/BaseActiveRecord.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 83bfc46c..d47bbbeb 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -313,7 +313,6 @@ class ActiveRecord extends BaseActiveRecord public function setWith($data): static { $this->_with = $data; - var_dump(get_called_class(), $this->_with); return $this; } @@ -323,7 +322,6 @@ class ActiveRecord extends BaseActiveRecord */ public function getWith(): array|null { - var_dump(get_called_class(), $this->_with); return $this->_with; } diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 75b0ccec..b8f93570 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -138,9 +138,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess $methods = $annotation->getMethods(get_called_class()); foreach ($methods as $method => $attributes) { foreach ($attributes as $attribute) { - if (!($attribute instanceof Get) && !($attribute instanceof Set)) { - continue; - } $attribute->execute([$this, $method]); } }