Array to String Conversion Problem
I'm building form that include Repeater, but when I'm trying to save the form, Array to String Conversion error always appears. I have ensured that the column in the database has JSON type. Is theres any solution?
12 Replies
You need to cast it in the model as ‘array’
I do, but the error keeps coming.
error
Never worked with Postgres but I wonder if it has something to do with the nested arrays.
I still don't understand, do you have an example?
I don't think there should be anything special to Postgres
I don’t either. But the data looks ok to me.
You set the casts right, we use also Postgres without problems. How do you setup the database field type?
Did you add the casts to the releases model
I do setup the and with json columns. So that's why I'm also confused why the result is actually an error.
Yes, I do add the cast into releases model. Can you help me about this? I can give you access to see the code if that need.
Provide the schema of the table
Here is the database table and the model.
Until now, no solution has been found...