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.
The text was updated successfully, but these errors were encountered:
siggi-k
changed the title
enum is generated with trim
rules bug generated: enum with trim
Jan 22, 2024
siggi-k
changed the title
rules bug generated: enum with trim
gii/api generated rules bug: enum with trim
Jan 22, 2024
siggi-k
changed the title
gii/api generated rules bug: enum with trim
Bug gii/api generated rules: enum with trim
Feb 5, 2024
initial
reproduction steps
./yii gii/api
to generate code and update modelbug
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.
The text was updated successfully, but these errors were encountered: