8000 auto validation always fail for not null field, filled in doctrine events · Issue #34009 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

auto validation always fail for not null field, filled in doctrine events #34009

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
stayeronglass opened this issue Oct 17, 2019 · 1 comment
Closed

Comments

@stayeronglass
Copy link
stayeronglass commented Oct 17, 2019

Symfony version(s) affected: 4.3.

Description
not null field, filled in doctrine events always fail auto validation

How to reproduce

  1. create entity.
  2. generate crud
  3. add not null field, filled in LifeCycleCallback events or simple use doctrine extension such as Timestampable
  4. Do not include that field in form

result - form auto validation always fail

Possible Solution
auto validate only fieds that present in form
OR
add annotation to disable auto validation per field basis

@xabbuh
Copy link
Member
xabbuh commented Oct 17, 2019

see #32015 and #32070 :)

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

2 participants
0