This commit is contained in:
2021-01-26 17:12:26 +08:00
parent 8df208f177
commit f8c79b148e
+2 -1
View File
@@ -29,7 +29,8 @@ class HasOne extends HasBase
if (method_exists($this, $name)) {
return call_user_func([$this, $name], ...$arguments);
}
return $this->_relation->getQuery($this->model::className())->$name(...$arguments);
$this->_relation->getQuery($this->model::className())->$name(...$arguments);
return $this;
}
/**