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

BUG Nomalise boolean ORM filter in to 1/0 #9865

Draft
wants to merge 1 commit into
base: 4
Choose a base branch
from

Conversation

maxime-rainville
Copy link
Contributor

I honestly don't know if this is a good idea. The parent issue is probably not worth fixing on it's own, but it does highlight that we don't currently have a good way to normalise filter values to specific DBField/DB-Drivers.

Parent issue

@sminnee
Copy link
Member

sminnee commented Mar 2, 2021

Silverstripe should have an ORM-wide set of type normalisation rules rather than backend-specific ones. So we need to normalise stuff the lowest common denominator, which means using an int to store Boolean values.

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

Successfully merging this pull request may close these issues.

Boolean filters don't work
2 participants