This commit is contained in:
2023-04-01 18:50:44 +08:00
parent cd94d2dc57
commit 1dfe32bf3c
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -29,6 +29,6 @@ class HasMany extends HasBase
public function get(): array|Collection|null
{
$relation = Kiri::getDi()->get(Relation::class);
return $relation->get($this->name);
return $relation->getQuery($this->name)->get();
}
}