You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a sql column using the ->string(255) of TdbmFluidSchema.
If I try to insert a value bigger than the max size of the string, I get the expected PDOException : SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1 unless I set a rule in the Model.
Maybe Tdbm should generate a condition to avoid this kind of error by either integrating a validator or proposing an option to automaticaly generate a condition in the model that throw an error message as this can be redundant.
The text was updated successfully, but these errors were encountered:
I made a sql column using the ->string(255) of TdbmFluidSchema.
If I try to insert a value bigger than the max size of the string, I get the expected PDOException : SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1 unless I set a rule in the Model.
Maybe Tdbm should generate a condition to avoid this kind of error by either integrating a validator or proposing an option to automaticaly generate a condition in the model that throw an error message as this can be redundant.
The text was updated successfully, but these errors were encountered: