This commit is contained in:
2023-04-10 17:53:20 +08:00
parent ecfe15c3ac
commit 5b3e2bb569
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -274,10 +274,7 @@ class Model extends Base\Model
{
$with = $this->getWith();
foreach ($with as $value) {
$join = $this->{'get' . ucfirst($value)}();
if ($join instanceof HasBase) {
$join = $join->get();
}
$join = $this->withRelate($value);
if ($join instanceof Kiri\ToArray) {
$join = $join->toArray();
}