The thing now with the Date Range Picker is this, that if you only change the Start Date, the End Date might be before the Start Date and so invalid. (there is maybe js validaton or html5 validation missing)
The Problem is now that while the Symfony Validation does work and does says the Form is invalid, the error isn't shown on the right Form Field.
I don't know yet what the right thing would be.
Expected results
Either before Form Submit, the JS/HTML Validator should show the Error
And/Or the Symfony validator should be shown in the Form that is for the other property
Environment
Sonata packages
Symfony packages
PHP version
PHP 7.3.5 (cli) (built: May 1 2019 13:17:17) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
Subject
I have an Entity with both from and to Attributes, and i wanted to use the DateRangePicker for this
Entity code:
Form code:
The thing now with the Date Range Picker is this, that if you only change the Start Date, the End Date might be before the Start Date and so invalid. (there is maybe js validaton or html5 validation missing)
The Problem is now that while the Symfony Validation does work and does says the Form is invalid, the error isn't shown on the right Form Field.
I don't know yet what the right thing would be.
Expected results
Either before Form Submit, the JS/HTML Validator should show the Error And/Or the Symfony validator should be shown in the Form that is for the other property
Actual results
Form without any Error shown