->relationship() with hasOneThrough() relation doesn't work anymore
Hi guys, in my Account model I have this relation:
public function games() { return $this->hasOneThrough( Game::class, SmurfType::class, 'id', // Foreign key on SmurfType table 'id', // Foreign key on Game table 'smurftype', // Local key on Account table 'game' // Local key on SmurfType table ); }
public function games() { return $this->hasOneThrough( Game::class, SmurfType::class, 'id', // Foreign key on SmurfType table 'id', // Foreign key on Game table 'smurftype', // Local key on Account table 'game' // Local key on SmurfType table ); }
Filament\Forms\Components\Select::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\BelongsTo|Illuminate\Database\Eloquent\Relations\BelongsToMany|Znck\Eloquent\Relations\BelongsToThrough|null, Illuminate\Database\Eloquent\Relations\HasOneThrough returned
Is there a way to solve this without manually giving options and a query method myself, like it used to be?