This commit is contained in:
2023-04-10 17:45:29 +08:00
parent b069bc425b
commit ecfe15c3ac
4 changed files with 5 additions and 5 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->getQuery($this->name)->get();
return $relation->get($this->name);
}
}