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
Tieme11mo 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 eaterOP11mo ago
Not a tenant scope, Just a company model extending the team model
Dennis Koch
Dennis Koch11mo ago
Standalone form, right? Can you share the form code?
leoblanski
leoblanski11mo 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 Koch11mo ago
Please don't cross-post if you already opened a help thread.
leoblanski
leoblanski11mo ago
sorry guy
code eater
code eaterOP11mo ago
here, it is from a standalone action
Dennis Koch
Dennis Koch11mo ago
Yeah. Same issue. It's missing ->record()
code eater
code eaterOP11mo ago
on which part do i add that?
Dennis Koch
Dennis Koch11mo ago
On the form. And you need to pass your model
code eater
code eaterOP11mo ago
Thanks , just what am looking for
Want results from more Discord servers?
Add your server