-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DoctrineBridge] Added support for boolean value in UniqueEntity #28601
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
[DoctrineBridge] Added support for boolean value in UniqueEntity #28601
Conversation
d8116e6
to
9011ee8
Compare
Thanks for proposing this feature! As I don't see a related ticket, can you explain why you need this feature and what use-cases this would support? That would greatly help the core team to decide whether or not this feature is right for Symfony or perhaps if another solution would be desired. |
@linaori, for example, I have a |
src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
Outdated
Show resolved
Hide resolved
70e6cad
to
91868ae
Compare
91868ae
to
4824f2a
Compare
4824f2a
to
62a2857
Compare
62a2857
to
32c0332
Compare
Branch rebased. |
I am not convinced that limiting this feature to |
hello @xabbuh, thank you for your review 👍 |
Hey @ottaviano 👋 Do you find some time to finish this PR? |
I'm going to close this PR as there is no more activity nor feedback. @ottaviano Feel free to reopen it whenever you have time to finish it (if you want to). |
Hi @OskarStark & @fabpot, sorry for the silence, I did not have access to my emails during the holidays. |
@ottaviano No worries. Reopen it whenever you have time. |
Hi 👋,
little feature to allow to use
UniqueEntityValidator
with boolean type field (ex:Entity::enabled
property) withignoreFalse
constraint option for allowing many entities withfalse
value.