This commit is contained in:
2021-03-04 15:25:42 +08:00
parent a578c2eaac
commit 47e372c37e
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -313,7 +313,6 @@ class ActiveRecord extends BaseActiveRecord
public function setWith($data): static public function setWith($data): static
{ {
$this->_with = $data; $this->_with = $data;
var_dump(get_called_class(), $this->_with);
return $this; return $this;
} }
@@ -323,7 +322,6 @@ class ActiveRecord extends BaseActiveRecord
*/ */
public function getWith(): array|null public function getWith(): array|null
{ {
var_dump(get_called_class(), $this->_with);
return $this->_with; return $this->_with;
} }
-3
View File
@@ -138,9 +138,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
$methods = $annotation->getMethods(get_called_class()); $methods = $annotation->getMethods(get_called_class());
foreach ($methods as $method => $attributes) { foreach ($methods as $method => $attributes) {
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
if (!($attribute instanceof Get) && !($attribute instanceof Set)) {
continue;
}
$attribute->execute([$this, $method]); $attribute->execute([$this, $method]);
} }
} }