F
Filament14mo ago
Bagus A

Prevent save to not existing column

I have a dependent select. In this table I don't have product_id, I only save to variant_id. The product is only shown in order to filter the variant. How do I prevent the form to try to save to product field. Filament will always try to save a field to a column. Column not found: 1054 Unknown column 'product' in 'field list'
No description
6 Replies
Bagus A
Bagus AOP14mo ago
No description
Bagus A
Bagus AOP14mo ago
I still get this error @Vp I only need the product dropdown to get the variant but I don't save the selected product to the order table.
Vp
Vp14mo ago
According to the link it should prevent, If it doesn't work then I don't have any idea, sorry
No description
Bagus A
Bagus AOP14mo ago
@Vp order matters. I put the method below live(), it's not working. But moving it above is working. Thank you
Vp
Vp14mo ago
Oh, I also learned new lesson "order matters"
Want results from more Discord servers?
Add your server