This commit is contained in:
2023-12-12 15:35:35 +08:00
parent 510a13e3da
commit e2c0f62532
32 changed files with 922 additions and 1095 deletions
+9 -9
View File
@@ -22,13 +22,13 @@ use Kiri;
class HasMany extends HasBase
{
/**
* @return array|null|Collection
* @throws Exception
*/
public function get(): array|Collection|null
{
$relation = Kiri::getDi()->get(Relation::class);
return $relation->get($this->name);
}
/**
* @return array|null|Collection
* @throws
*/
public function get(): array|Collection|null
{
$relation = Kiri::getDi()->get(Relation::class);
return $relation->get($this->name);
}
}