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]); } }