Title: "SQL Update Error in Filament Repeater on Edit Operation: Seeking Solutions"

Hello everyone, I'm encountering a peculiar issue in my Laravel application when using the Filament Repeater component. Everything works fine when I create new records in the analysis_types table. However, when editing existing records, I run into a SQL error stating: "Column not found: 1054 Unknown column 'parameter_name_id'". This error specifically occurs only during the edit operation. The update query mistakenly tries to update parameter_name_id and analysis_parameter_unit_id fields, which don't exist as separate columns but are part of the JSON in the parameter_data column. I've attempted to exclude these fields from the update process without success. I would greatly appreciate any advice or solutions to address this issue. Thank you!
No description
2 Replies
GeorgeMoses
GeorgeMoses7mo ago
No description
LeandroFerreira
LeandroFerreira7mo ago
Did you add this in the model?
protected $casts = ['parameter_name' => 'array'];
protected $casts = ['parameter_name' => 'array'];