HasManyThrough not allowed in Repeater->relationship

Hi, I am building an admin panel for a contract administration. They need to add various of relational data, one of them is seasons which are hold by it's parent called seasonGroups. A contract references n seasonGroups so I thought: I could access the seasons by a HasManyThrough relation.
Forms\Components\Repeater::make('seasons')
->label(__('Saisonen'))
->relationship('seasons')
Forms\Components\Repeater::make('seasons')
->label(__('Saisonen'))
->relationship('seasons')
This snippet results in following error message.
Filament\Forms\Components\Repeater::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\HasOneOrMany|Illuminate\Database\Eloquent\Relations\BelongsToMany|null, Illuminate\Database\Eloquent\Relations\HasManyThrough returned
Filament\Forms\Components\Repeater::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\HasOneOrMany|Illuminate\Database\Eloquent\Relations\BelongsToMany|null, Illuminate\Database\Eloquent\Relations\HasManyThrough returned
Are there any specific reasons why HasManyThrough is not supported by relationship?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server