Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():
Hi guys .. i'm on ContratoResource file wich list contracts. Each contract can have one item created. I create an action to open a modal to create that item but when i click on action button i recieve this error. Anyone can help me ?



9 Replies
probably
the relation in your form has a typo
mm cant spot it tho
does the relation work outside of filament?
so can you like instantiate a model and do $model->contrato ?
also be sure to check that the inverse of the relationship is also setup correctly, I found sometimes that is necessary
ye probably something like that
error message you get is a bit meh


both relation are correct and working
😕
totally
Seems like it's considering the Contrato model instead of ContratoFornecedorItem model
how can i set a model to form in an action ?
if you do $record
you gt the wrong one or?
in action, if i remove the ContratoFornecedorItem type and just let $record it brings me back the Contrato in the row. If i let ContratoFornecedorItem and remove the code inside form(), they return that error

If you want you can send me the entire resource file and i'll take a look tonight when i'm home
or share the repo so i can fork it if thats possibl