We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the date range form type, if we fill only the start date and leave the endDate empty, an exception is thrown.
A validator should be applied to return a form error and the bundle should not throw exception for a missing field.
The text was updated successfully, but these errors were encountered:
The error is present event if the two fields are filled :
"Cannot read index "startDate" while trying to traverse path "[startDate]". Available indices are "Array ( ) ".
Sorry, something went wrong.
It is missing a transform like :
->addModelTransformer(new CallbackTransformer(function ($value) { if (null === $value) { $value = [ 'startDate' => null, 'endDate' => null, ]; } return $value; }, function ($value) { return $value; }))
No branches or pull requests
When using the date range form type, if we fill only the start date and leave the endDate empty, an exception is thrown.
A validator should be applied to return a form error and the bundle should not throw exception for a missing field.
The text was updated successfully, but these errors were encountered: