-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tinyint issue in generating model using GII #16635
Comments
Check the version yiisoft/yii2-gii yiisoft/yii2-gii#335 maybe this is the problem? |
yiisoft/yii2-gii#335 is not the solution anyway it is closed. |
update yiisoft/yii2-gii to 2.0.7, and I think is will be solution |
2.0.15 is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the problem?
Create any table with a field of type "tinyint" and try to generate a model through GII
What is the expected result?
My expected result is that in the rules function i need to get that tinyint as Integer.
What do you get instead?
I get that tinyint as string.
Additional info
I debug that in Generator.php (vendor/yiisoft/yii2-gii/generators/model/Generator.php) generaterules function in switch case "tinyint" is missing.
The text was updated successfully, but these errors were encountered: