Skip to content
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

cannot save boolean false in Mysql database #314

Open
vickson5118 opened this issue Dec 8, 2022 · 2 comments
Open

cannot save boolean false in Mysql database #314

vickson5118 opened this issue Dec 8, 2022 · 2 comments

Comments

@vickson5118
Copy link

From manual page: https://php.net/language.types.boolean


When I use an object containing a bool attribute, it is impossible to save the false value of the boolean in the database

@yassiNebeL
Copy link

MySQL does not have a bool datatype.

@dbomard
Copy link

dbomard commented Dec 1, 2023

You should use a TINYINT sql datatype instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants