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 try to dump $model->key before form display and got this value - two single quotes.
I seen ActiveRecord::loadDefaultValues and tried dump there - got this bug there.
I found only one decision - set no default value and set blank string in the model code. But this is no right because i got other soft works with this db and it use default values.
Yii v2, PHP v8.3.13
The text was updated successfully, but these errors were encountered:
Hello. I got table in MySQL with default blank string value. In SQL it looks like:
In the model i set rule with blank string as default value:
And i try to do simple form with it
In the form i see textarea with two single quotes as default value.
two single quotes
All fields with default blank string value got this bug.
My connection params:
How can i fix it?
I try to dump $model->key before form display and got this value - two single quotes.
I seen ActiveRecord::loadDefaultValues and tried dump there - got this bug there.
bad default value
I found only one decision - set no default value and set blank string in the model code. But this is no right because i got other soft works with this db and it use default values.
Yii v2, PHP v8.3.13
The text was updated successfully, but these errors were encountered: