8000 [Validation] Automatic validation for boolean columns · Issue #32168 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validation] Automatic validation for boolean columns #32168

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

Closed
phpdev opened this issue Jun 25, 2019 · 3 comments
Closed

[Validation] Automatic validation for boolean columns #32168

phpdev opened this issue Jun 25, 2019 · 3 comments

Comments

@phpdev
Copy link
phpdev commented Jun 25, 2019

Symfony version(s) affected: 4.3.*

Description
I try to enable "Automatic validation" feature but its not working well for me.
If column type is boolean, form component creating a html checkbox. After enable "Automatic validation", it's set to required. I cant select for "false". So, it will always "true".

https://symfony.com/blog/new-in-symfony-4-3-automatic-validation

How to reproduce
Symfony 4.3 + EasyAdmin Bundle

Possible Solution
If input type is checkbox(doctrine type boolean), it should be not required.

Additional context

  • "symfony/property-info" is installed.
framework:
    secret: -secret-
    profiler: { only_exceptions: false }
    validation:
        auto_mapping:
            App\Entity\: []
    /**
     * @ORM\Column(type="boolean")
     */
    private $isActive;

Screen Shot 2019-06-25 at 13 51 47

If this issue is same with #32070, sorry.

@xabbuh
Copy link
Member
xabbuh commented May 29, 2020

@phpdev Do you still experience this issue? If so, can you please create a small example application that allows to reproduce?

@xabbuh
Copy link
Member
xabbuh commented May 29, 2020

And could you please also check if this is the same as #26593?

@xabbuh
Copy link
Member
xabbuh commented Jun 5, 2020

I believe this is rather a duplicate of #26593 so I am going to close here. If we manage to reproduce that this is something else, we can reopen anyway.

@xabbuh xabbuh closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0