改名
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user