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
{{ message }}
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
"schema.yaml" with attribute, which has type "enum"
this new attribute can be NULL !
reproduction steps
execute ./yii gii/api to generate code and update model
bug
attribute is treated as a type string by applying trim in the function rules in abstract class from model.
this means that if the attribute was not passed and is therefore NULL, it becomes an empty string due to the validation. This in turn means that it cannot be saved as it is an enum.