Call to a member function isRelation() on null

i get the above error when i try to get product relationship from a select input the relationship is belongs to.
12 Replies
Tieme
Tieme5mo ago
if this is tenant scope i would do this $query->where('team_id', Filament::getTenant()->id)->where('active', true); Still it is nog quite 'secure' See this for TennantScope https://filamentphp.com/docs/3.x/panels/tenancy#tenancy-security
code eater
code eater5mo ago
Not a tenant scope, Just a company model extending the team model
Dennis Koch
Dennis Koch5mo ago
Standalone form, right? Can you share the form code?
leoblanski
leoblanski5mo ago
I got the same error trying to use Livewire component with Action that has relationships. https://discord.com/channels/883083792112300104/1196887037740073152
Dennis Koch
Dennis Koch5mo ago
Please don't cross-post if you already opened a help thread.
leoblanski
leoblanski5mo ago
sorry guy
code eater
code eater5mo ago
here, it is from a standalone action
Dennis Koch
Dennis Koch5mo ago
Yeah. Same issue. It's missing ->record()
code eater
code eater5mo ago
on which part do i add that?
Dennis Koch
Dennis Koch5mo ago
On the form. And you need to pass your model
code eater
code eater5mo ago
Thanks , just what am looking for