改名
This commit is contained in:
@@ -22,13 +22,14 @@ class HasMany extends HasBase
|
||||
/**
|
||||
* @param $name
|
||||
* @param $arguments
|
||||
* @return static
|
||||
* @throws Exception
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
public function __call($name, $arguments): static
|
||||
public function __call($name, $arguments): mixed
|
||||
{
|
||||
$this->_relation->getQuery($this->model::className())->$name(...$arguments);
|
||||
return $this;
|
||||
if (method_exists($this, $name)) {
|
||||
return call_user_func([$this, $name], ...$arguments);
|
||||
}
|
||||
return $this->_relation->getQuery($this->model::className())->$name(...$arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user