F
Filament[BR]Darkriders

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 ?
No description
No description
No description
P
Patrick198946d ago
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 ?
C
CT46d ago
also be sure to check that the inverse of the relationship is also setup correctly, I found sometimes that is necessary
P
Patrick198946d ago
ye probably something like that error message you get is a bit meh
B
[BR]Darkriders46d ago
No description
B
[BR]Darkriders46d ago
No description
B
[BR]Darkriders46d ago
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 ?
P
Patrick198946d ago
if you do $record you gt the wrong one or?
B
[BR]Darkriders46d ago
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
No description
P
Patrick198946d ago
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
Want results from more Discord servers?
Add your server
More Posts
How to record the last login (online) time of a user?The user table has created_at and updated_at fields. I want to add a logged_at field. To track whenstruggle with select field =_=i create a Select then for its option i have a model which has this relation: > `public function fiwhat merhod to use in import action: castStateUsing or filstateUsingHi everyone, i have a table with id and name and i want to modify name, while importing, based on a Weird login error after livewire updateAfter `composer update` I can't login to filament. I see the login form but the password field is aReusable sectionsHi, I was wondering how you usually create reusable parts for example e.g. infolists or forms? For efiltersForm()Im using custom livewire page with widget with table. I have defined filter form and $this->filters JS error : "Livewire assets are out of date"Hi guys, I made a few changes on my Filament app and now login isn't working anymore and I think it'It's possible to put the relation on top of form page?I have a big form. After create a record ( with doesn't have the relation fields already ), a user dWork with existing tables without deleting their contents when doing migrationsHi guys, I'd like to work with already existing data in the database. Unfortunately the table is deAction opening an empty state modalI'm using Action in a spatie livewire wizard component. When I click on next button once, the step iBlock Repeater Rating with MorphToMany RelationGreetings, I have a block with this form inside class Rating { public static function make( Ignore using filament:assets for packageI am using this package for inspiration: https://github.com/cheesegrits/filament-google-maps and fouHow to increase Pest test coverageHey, I am attempting to increase my test coverage to 100% for my resources and can't seem to figurHow to put images in a textarea with filament ?I've tried a lot of things but when I insert my images in a textarea, and that I go back to the fronfile uploading to S3 on vapor stuck on uploadingI have set a new server on Laravel Vapor, the S3 was generated by vapor with full public access, theUse filament Components outside filamentCan I use filament components like a table outside filament assuming I have a simple laravel app witDoes --generate flag work when creating a resource?To test it I: 1- Updated filament libs (`composer update`) & cleared cache `php artisan optimize:clMissing New panel resources - links don't appear on sidebar - 404-Not foundHello. I have been developing an app since the beginning of February and everthing was Ok. I have beNested relation formHi guys, is it possible to create form with nested relations? ```php // ClientResource.php Forms\CoDispatching a livewire event from a filament action when submitHello, I need help dispatching a livewire event from a filament action but none of the answers or me