SQLSTATE[01000]: Warning: 1265 Data truncated for column
The problem is that column pay_totals
can't store whatever you are getting from the input because is too big.
Possibles solutions
SQL: ALTER TABLE [orders] ALTER COLUMN [pay_totals] VARCHAR(MAX)
MYSQL: ALTER TABLE [orders] MODIFY COLUMN [pay_totals] VARCHAR(60000)
Same error can be occurred due data type mismatching. As an example,if you are assigning an string to float, you will get this error. so be sure to check whether the data are in correct type. I got this error on symfony.